public CharacterSheet() { BodySlot = new Armor(); HeadSlot = new Armor(); RightHand = new Weapon(); LeftHand = new Weapon(); }
// // GET: /Game/WeaponSeed public ActionResult WeaponSeed(int id) { Character character = db.Characters.Find(id); Weapon wpn = new Weapon(); //small gun wpn = new Weapon(); wpn.Name = "Colt 6520 10mm Pistol"; wpn.Description = "An outloading pistol, each pull of the trigger will automatically reload the firearm until the magazine is empty."; wpn.Value = 250; wpn.Weight = 4; wpn.MinimumStrength = 3; wpn.Damage = 6; wpn.Range = 19; wpn.APSingle = 5; wpn.APTargeted = 6; wpn.APBurst = -1; character.Gear.Add(wpn); //big gun wpn = new Weapon(); wpn.Name = "Browning M2 Minigun"; wpn.Description = "Originally designed as a tripod-mounted weapon in the last stages of World War I, the Browning was later adapted for infantry use as the first true minigun."; wpn.Value = 3000; wpn.Weight = 40; wpn.MinimumStrength = 7; wpn.Damage = 8; wpn.Range = 20; wpn.APSingle = -1; wpn.APTargeted = -1; wpn.APBurst = 7; character.Gear.Add(wpn); //energy weapon wpn = new Weapon(); wpn.Name = "Wattz 1600 Laser Pistol"; wpn.Description = "The Laser Pistol is perhaps the simplest of the energy weapons."; wpn.Value = 1400; wpn.Weight = 7; wpn.MinimumStrength = 3; wpn.Damage = 10; wpn.Range = 35; wpn.APSingle = 5; wpn.APTargeted = 6; wpn.APBurst = -1; character.Gear.Add(wpn); //melee weapon wpn = new Weapon(); wpn.Name = "Spear"; wpn.Description = "Your basic polearm. A wooden pole with a sharpened piece of metal on the end."; wpn.Value = 80; wpn.Weight = 4; wpn.MinimumStrength = 4; wpn.Damage = 3; wpn.Range = 2; wpn.APSingle = 4; wpn.APTargeted = 5; wpn.APBurst = -1; character.Gear.Add(wpn); db.SaveChanges(); return RedirectToAction("Character", new { id = id }); }