Sets the character changed since last save. NB: This is not a 'safe' call - its use should be considered carefully and in particular it should not be called from a method used as part of PlayerCharacter cloning as this can mean conditional abilities get dropped when they are actually qualified for,
(final boolean dirtyState)
| 978 | * @param dirtyState the new "dirty" value (may be false to indicate no change) |
| 979 | */ |
| 980 | public void setDirty(final boolean dirtyState) |
| 981 | { |
| 982 | if (dirtyState) |
| 983 | { |
| 984 | serial++; |
| 985 | cache = new ObjectCache(); |
| 986 | variableProcessor.setSerial(serial); |
| 987 | cabFacet.update(id); |
| 988 | cAvSpellFacet.update(id); |
| 989 | cKnSpellFacet.update(id); |
| 990 | condLangFacet.update(id); |
| 991 | bonusSkillRankChangeFacet.reset(id); |
| 992 | } |
| 993 | |
| 994 | dirtyFlag = dirtyState; |
| 995 | } |
| 996 | |
| 997 | /** |
| 998 | * Gets whether the character has been changed since last saved. |