public void SetTileEvent(int i) { if (i == 1 && i < 3) { type = "Power"; power = new Power(Random.Range(0, 10)); nameE = "New power:" + power.GetName(); description = power.GetDescription(); } else if (i >= 3 && i < 5) { type = "Item"; item = new Item(Random.Range(0, 18)); nameE = "New item:" + item.GetName(); description = item.GetDescription(); } else if (i >= 5 && i < 8) { type = "Event"; hap = new Hap(Random.Range(0, 4)); nameE = "New event:+" + hap.GetName(); description = hap.GetDescription(); } else { type = "Void"; nameE = "Void"; description = "Nothing happens, it's a normal tile."; } }
public void ClearEvent() { type = "Checked"; power = null; item = null; hap = null; nameE = "Tile Already checked"; description = "Too late, someone already looted the place."; }