Ejemplo n.º 1
0
 public void applyGlobalSlowRegen()
 {
     if (regenPerDayWithFood > 0)
     {
         foreach (var npc in ownedNPC.getNPCs())
         {
             buffSystem.regenApplyingSystem(npc, starvingTickTimer, starvingTickTimer / (float)regenPerDayWithFood, 1);
         }
         buffSystem.regenApplyingSystem(player, starvingTickTimer, starvingTickTimer / (float)regenPerDayWithFood, 1);
     }
 }
Ejemplo n.º 2
0
 void Update()
 {
     timeFromLastApply += Time.deltaTime;
     if (timeFromLastApply > timeBetweenReapplication)
     {
         timeFromLastApply = 0;
         foreach (Collider victim in targets)
         {
             buffsys.regenApplyingSystem(victim.gameObject, regenDuration,
                                         regenTickTime, healingPerTick);
         }
     }
 }