public SimpleBooleanStatusDebuff(GameAttributeB statusAttribute, GameAttributeB immuneCheckAttribute, FloatingNumberMessage.FloatType?floatMessage = null) { _statusAttribute = statusAttribute; _immuneCheckAttribute = immuneCheckAttribute; _floatMessage = floatMessage; _immuneBlocked = false; }
public bool this[GameAttributeB attribute] { get { return(GetAttributeValue(attribute, null).Value != 0); } set { SetAttributeValue(attribute, null, new GameAttributeValue(value ? 1 : 0)); } }
public bool this[GameAttributeB attribute, int key] { get { return(GetAttributeValue(attribute, key).Value != 0); } set { SetAttributeValue(attribute, key, new GameAttributeValue(value ? 1 : 0)); } }
public bool _RawGetAttribute(GameAttributeB attribute, int?key) { return(RawGetAttributeValue(attribute, key).Value != 0); }