Exemplo n.º 1
0
 protected override void OnAfflict()
 {
     //On affliction end the entity's turn
     EntityAfflicted.SetMaxTurns(0);
     EntityAfflicted.SetTurnsUsed(EntityAfflicted.MaxTurns);
     Debug.Log($"{StatusType} set MaxTurns to 0 for {EntityAfflicted.Name}");
 }
Exemplo n.º 2
0
 protected override void OnResume()
 {
     if (PreventMovement == true)
     {
         EntityAfflicted.SetMaxTurns(0);
         EntityAfflicted.SetTurnsUsed(EntityAfflicted.MaxTurns);
     }
 }
Exemplo n.º 3
0
 protected override void OnUnsuppress(Enumerations.StatusSuppressionTypes statusSuppressionType)
 {
     if (statusSuppressionType == Enumerations.StatusSuppressionTypes.Effects)
     {
         if (PreventMovement == true)
         {
             EntityAfflicted.SetMaxTurns(0);
             EntityAfflicted.SetTurnsUsed(EntityAfflicted.MaxTurns);
         }
     }
 }
Exemplo n.º 4
0
        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}");
        }