//public List<Potion> getActivePotions() { // List<Potion> rtn = new List<Potion>(); // foreach (string name in status.Properties) { // Potion loaded = Potion.createPotion((DatabaseObject)status[name]); // if (!loaded.expired) rtn.Add(loaded); // } // return rtn; //} public bool hasActivePotion(Potion potion) { return(this.status.Contains(potion.name) && !this.isExpired(this.status.GetObject(potion.name))); }
public void addPotion(Potion potion, Callback <List <Potion> > callback) { this.addPotion(potion, callback, this.status); }
public void activatePotion(Potion potion, Callback <List <Potion> > callback) { //potion.activate(); //this.addPotion(potion, callback); }