Exemple #1
0
 override public void ActivateSwitch(bool b)
 {
     if (b)
     {
         InventoryList playerInventory = GlobalController.inventory.items;
         if (playerInventory.HasItem(plasma))
         {
             StoredItem playerPlasma = playerInventory.GetItem(plasma);
             int        plasmaCount  = playerPlasma.count;
             playerInventory.RemoveItem(playerPlasma);
             GlobalController.BoostStat(StatType.HEALTH, plasmaCount * healthPerPlasma);
         }
     }
 }
Exemple #2
0
 override public void Activate()
 {
     GlobalController.BoostStat(statType, amount);
 }