Esempio n. 1
0
 public void addEffect(DrugTemplate drug)
 {
     if (Time.timeScale > drug.time_scale) //zeby zawsze najnizszy byl
     {
         Time.timeScale = drug.time_scale;
     }
     zmien_flage_narkotyku(drug.nazwa, true);
     addPoints(drug);
     //hero.poisoning += drug.poison_points;
     //drug.setTimeOfUse(Time.time);
     heroW.addWithdrawalPoints(drug.withdroval_points);
     hero.speed  += drug.speedBoost;
     hero.attack += drug.attackBoost;
     hero.health += drug.lifeBoost;
 }