protected override void OnUnsuppress(Enumerations.StatusSuppressionTypes statusSuppressionType) { if (statusSuppressionType == Enumerations.StatusSuppressionTypes.Effects) { EntityAfflicted.AddIntAdditionalProperty(Enumerations.AdditionalProperty.ConfusionPercent, ConfusionPercent); } }
protected override void OnUnsuppress(Enumerations.StatusSuppressionTypes statusSuppressionType) { if (statusSuppressionType == Enumerations.StatusSuppressionTypes.Effects) { EntityAfflicted.SetMaxTurns(0); //Re-add the Immobile property EntityAfflicted.AddIntAdditionalProperty(Enumerations.AdditionalProperty.Immobile, 1); } }
protected override void OnAfflict() { //Prevent the entity from moving on affliction and mark it as using up all of its turns EntityAfflicted.SetMaxTurns(0); EntityAfflicted.SetTurnsUsed(EntityAfflicted.MaxTurns); //Specify that this status makes the entity Immobile EntityAfflicted.AddIntAdditionalProperty(Enumerations.AdditionalProperty.Immobile, 1); Debug.Log($"{StatusType} set MaxTurns to 0 for {EntityAfflicted.Name}"); }
protected sealed override void OnAfflict() { base.OnAfflict(); //Suppress the statuses it suppresses HandleStatusSuppression(true); //Add the Invincible AdditionalProperty EntityAfflicted.AddIntAdditionalProperty(Enumerations.AdditionalProperty.Invincible, 1); EntityAfflicted.AnimManager.PlayAnimation(AnimationGlobals.StatusBattleAnimations.StoneName); HandleStatusImmunities(true); Debug.Log($"{StatusType} has been inflicted on {EntityAfflicted.Name}!"); }
protected sealed override void OnUnsuppress(Enumerations.StatusSuppressionTypes statusSuppressionType) { base.OnUnsuppress(statusSuppressionType); if (statusSuppressionType == Enumerations.StatusSuppressionTypes.Effects) { //Resume suppressing the statuses again HandleStatusSuppression(true); //Add the Invincible AdditionalProperty EntityAfflicted.AddIntAdditionalProperty(Enumerations.AdditionalProperty.Invincible, 1); EntityAfflicted.AnimManager.PlayAnimation(AnimationGlobals.StatusBattleAnimations.StoneName); HandleStatusImmunities(true); Debug.Log($"{StatusType} has been inflicted on {EntityAfflicted.Name}!"); } }
protected override void OnAfflict() { EntityAfflicted.AddIntAdditionalProperty(Enumerations.AdditionalProperty.ConfusionPercent, ConfusionPercent); }