Commit Graph

7 Commits

Author SHA1 Message Date
Joonas Rikkonen ff883ae882 Bunch of fixes to statuseffects:
- Fixed the multi-target StatusEffect.Apply method ignoring target names and always allowing stacking.
- Fixed delayed effects not working if the single-target StatusEffect.Apply method is used.
- Fixed delayed effects ignoring target names.
- Fixed delayed effects comparing the equality of the target lists, not the elements in the list (if the contents of the lists are identical the statuseffects should be considered identical).
2018-02-12 11:25:40 +02:00
Joonas Rikkonen d1bb33be78 Cutting/repairing holes in walls is logged, fixed gaps emitting drip particles even if there's no water in either hull. Closes #139 2018-01-09 19:50:55 +02:00
Joonas Rikkonen 6fff303d30 Removed inlined out variables from PropertyConditional. Didn't realize this was a C# 7 only feature. 2018-01-09 18:26:34 +02:00
Joonas Rikkonen 3956785032 Moved PropertyConditional match checking & status effect cancelling from the StatusEffect class to PropertyConditional. 2018-01-09 16:42:11 +02:00
Joonas Rikkonen 0671dba1b4 Changed PropertyConditional operators from strings to enums 2018-01-09 16:18:05 +02:00
Joonas Rikkonen e21959d0a2 Some PropertyConditional refactoring & fixes:
- Changed the "attribute" field from a string to a more descriptively named enum (TODO: do the same for the operators).
- Changed the "value" field from an object to a string because the value is always a string anyway (might want to make it an object that holds the actual value we're comparing against so there's no need to do any parsing in the Matches method).
- Fixed "!=" operator checking for equality.
- Removed unnecessary property value getting from the Matches method (reflection ain't cheap!)
2018-01-09 16:10:07 +02:00
Joonas Rikkonen c502d9545c Moved StatusEffect related classes to their own folder and PropertyConditional to its own file. 2018-01-09 16:09:59 +02:00