public NewbieTunic() : base(1148) { Weight = 1.0; LootType = LootType.Newbied; Name = "a newbie tunic"; m_Skill = AllowedSkills.Anatomy; }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); m_Skill = (AllowedSkills)reader.ReadInt(); }
public NewbieTunic() : base( 1148 ) { Weight = 1.0; LootType = LootType.Newbied; Name = "a newbie tunic"; m_Skill = AllowedSkills.Anatomy; }
public Tunic2() : base(1148) { Weight = 1.0; Hue = 2401; LootType = LootType.Newbied; Name = "a skill tunic"; string[] names = Enum.GetNames(typeof(AllowedSkills)); m_Skill = (AllowedSkills)Enum.Parse(typeof(AllowedSkills), names[Utility.Random(names.Length)], false); }
public Tunic2() : base( 1148 ) { Weight = 1.0; Hue = 2401; LootType = LootType.Newbied; Name = "a skill tunic"; string[] names = Enum.GetNames( typeof(AllowedSkills) ); m_Skill = (AllowedSkills)Enum.Parse(typeof(AllowedSkills), names[Utility.Random( names.Length )], false ); }
public WarriorViewModel(IWarrior warrior) { if (warrior == null) { throw new ArgumentNullException("Warrior is null"); } Warrior = warrior; Warrior.PropertiesChanged += Warrior_PropertiesChanged; ShowWeaponsPickerCommand = new ShowWeaponsPicker(this); BuyWarriorCommand = new BuyWarrior(this); RemoveWarriorCommand = new RemoveWarrior(this); IncreaseWarriorBuyAmountCommand = new IncreaseBuyAmount(this); DecreaseWarriorBuyAmountCommand = new DecreaseBuyAmount(this); ShowSkillSelectorCommand = new ShowSkillSelector(this); foreach (IEquipment item in warrior.Equipment) { EquippedWeapons.Add(new EquipmentSummaryViewModel(item)); } foreach (var item in warrior.AllowedSkills) { //if (!warrior.Skills.Contains(item)) //{ AllowedSkills.Add(new SkillViewModel(item)); //} } IWizard wizard = warrior as IWizard; if (wizard != null) { foreach (var item in wizard.DrawnSpells) { Spells.Add(new SpellViewModel(item)); } } IHero hero = warrior as IHero; if (hero != null) { foreach (var item in hero.Injuries) { InjuryViewModel injuryModel = new InjuryViewModel(item); Injuries.Add(injuryModel); InjuriesSimple.Add(injuryModel); } foreach (var item in hero.Skills) { Skills.Add(new SkillViewModel(item)); SkillsSimple.Add(new SkillViewModelSimple(item)); } } }
public override void Deserialize(GenericReader reader) { base.Deserialize( reader ); int version = reader.ReadInt(); m_Skill = (AllowedSkills)reader.ReadInt(); }
public AllowedSkillEntry(Mobile from, NewbieTunic tunic, AllowedSkills skill) : base(6000 + (int)skill, 4) { m_From = from; m_Tunic = tunic; m_Skill = skill; }
public AllowedSkillEntry( Mobile from, NewbieTunic tunic, AllowedSkills skill ) : base( 6000 + (int)skill, 4 ) { m_From = from; m_Tunic = tunic; m_Skill = skill; }