Beispiel #1
0
 public static void Effect()
 {
     if (!active)
     {
         return;
     }
     LocalPlayer.Stats.Energy  = ModdedPlayer.Stats.TotalMaxEnergy;
     LocalPlayer.Stats.Stamina = LocalPlayer.Stats.Energy;
     if (ModdedPlayer.Stats.i_setcount_BerserkSet >= 4)
     {
         float timeSpan = Time.time - castTimestamp;
         int   bonus    = Mathf.CeilToInt(timeSpan);
         if (bonus > setbonusAmount)
         {
             setbonusAmount = bonus;
             float buff = 0.35f * bonus + 1;
             BuffDB.ForceEndBuff(106);
             BuffDB.AddBuff(9, 106, buff, 3f);
             if (ModdedPlayer.Stats.i_setcount_BerserkSet >= 5)
             {
                 if (bonus <= 15)
                 {
                     BuffDB.ForceEndBuff(107);
                 }
                 BuffDB.AddBuff(14, 107, 0.3f * bonus, ModdedPlayer.Stats.spell_berserkDuration - bonus);
             }
         }
     }
 }