Commit Graph

10 Commits

Author SHA1 Message Date
Joonas Rikkonen
57a84f4b3d (5e82d9084) PropertyConditionals return a match when checking status tag inequality and the target has no status tags (e.g. checking if a character doesn't have a StatusEffect with a "poison" tag should return true even if the character has no active StatusEffects). 2019-03-30 15:34:42 +02:00
Joonas Rikkonen
044fd3344b 2f107db...5202af9 2019-03-18 21:42:26 +02:00
Joonas Rikkonen
6c0679c297 38f1ddb...178a853: v0.8.9.1, removed content folder 2019-03-18 20:39:27 +02:00
Joonas Rikkonen
eff5976461 PropertyConditional fixes:
- Fixed Equals/NotEquals not working at all because they checked for float values when the property is not a float and vice versa.
- Bool comparisons work now.
- Removed unnecessary property.GetValue calls, no need to get the value twice in the same method.
2018-04-23 15:19:40 +03: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