public override void Complete() { int winnerType = VoteHelper.GetWinner(_brainTypeVotes); BrainData.BrainDataEntry brainData = DataManager.Instance.GameData.Brains.Entries.GetOrDefault(winnerType); if (null == brainData) { return; } Brain = new Brain(brainData); }
public override void Complete() { int winnerType = VoteHelper.GetWinner(_weaponTypeVotes); WeaponData.WeaponDataEntry weaponData = DataManager.Instance.GameData.Weapons.Entries.GetOrDefault(winnerType); if (null == weaponData) { return; } Weapon = WeaponFactory.Create(Fighter, SlotData.Id, weaponData); if (null != Weapon) { Weapon.Strength = _weaponTypeVotes[winnerType]; } }