Example #1
0
 // zombie
 public static float GetZombieSpeedMultiplier(IBoosterState boosterState)
 {
     return boosterState.IsActive<ZombieSpeedBooster>() ? boosterState.GetActive<ZombieSpeedBooster>().SpeedMultiplier : 1;
 }
Example #2
0
 public static float GetPlayerAttackSpeedMultiplier(IBoosterState boosterState)
 {
     return boosterState.IsActive<PlayerAttackSpeedBooster>() ? boosterState.GetActive<PlayerAttackSpeedBooster>().AttackSpeedMultiplier : 1;
 }
Example #3
0
 public static float GetZombieDamageRedcutionMultiplier(IBoosterState boosterState)
 {
     return boosterState.IsActive<ZombieDamageReductionBooster>() ? boosterState.GetActive<ZombieDamageReductionBooster>().DamageReductionMultiplier : 1;
 }