public void Initialize(ComponentContainer components) { if (Randomly.TrueFalse()) { bondedFamiliar = this.familiars.ChooseOne(); components.Add(bondedFamiliar); } else { bondedItem = this.items.ChooseOne(); components.Get <Inventory>().EquipItem(bondedItem); } }
private bool ChoosesPositiveEnergy(CharacterAlignment alignment) { if (alignment.IsGood()) { return(true); } if (alignment.IsEvil()) { return(false); } return(Randomly.TrueFalse()); }