public void updateUI() { if(buildingTarget == null) buildingTarget = Armory.getInstance (); textLVL.text = buildingTarget.level.ToString (); textPV.text = buildingTarget.PV.ToString (); if( buildingTarget.upgradeLink != null && buildingTarget.upgradeLink.upgradeLevel.Count > 0){ buttonUpgrade.SetActive(true); string upgradeText = "Upgrade\n" + "Cout :"; foreach(RessourceInQuantity riq in buildingTarget.upgradeLink.upgradeLevel[0].cost ){ upgradeText += " "+riq.quantity+" "+riq.ressourceName; } textUpgrade.text = upgradeText; } else{ buttonUpgrade.SetActive(false); } woodQuantityText.text = Warehouse.getInstance ().getRessourceQuantityInBase (GameRessources.Wood).ToString (); metalQuantityText.text = Warehouse.getInstance ().getRessourceQuantityInBase (GameRessources.Metal).ToString (); }
// Start is called before the first frame update void Start() { Armory.loadGear(); CharacterManager.loadAllCharacters(); CharacterManager.loadCurrentCharacterFromPrefs(); showMainMenu(); }
public static Deck ParseDeck(string deckName, Armory armory) { TextAsset configFile = Resources.Load <TextAsset>($"Decks/{deckName}"); DeckConfig config = JsonConvert.DeserializeObject <DeckConfig>(configFile.text); return(new Deck(config, armory)); }
public static Item LoadFromId(string gemmedId, bool forceRefresh, string logReason, bool raiseEvent) { if (string.IsNullOrEmpty(gemmedId)) { return(null); } Item cachedItem = ItemCache.FindItemById(gemmedId, true, raiseEvent); if (cachedItem != null && !forceRefresh) { return(cachedItem); } else { if (cachedItem != null) { ItemCache.DeleteItem(cachedItem, raiseEvent); } Item newItem = Armory.GetItem(gemmedId, logReason); if (newItem == null && cachedItem != null) { ItemCache.AddItem(cachedItem, true, raiseEvent); } else { ItemCache.AddItem(newItem, true, raiseEvent); } return(newItem); } }
public static Deck ParseDeck(string deckName, Armory armory) { TextAsset configFile = Resources.Load <TextAsset>($"Decks/{deckName}"); DeckConfig config = JsonUtility.FromJson <DeckConfig>(configFile.text); return(new Deck(config, armory)); }
public void Initialize(ActorDto actorDto) { Guid = Guid.Parse(actorDto.Guid); gameObject.name = Guid.ToString(); gameObject.tag = FactionType.ToString(); FactionType = actorDto.FactionType; Playable = actorDto.Playable; TaskScheduler.Initialize(Guid); StatusEffectScheduler.Initialize(Guid); Attributes.Initialize(this, actorDto.AttributesDto); Status.Initialize(actorDto.StatusDto); Inventory.Initialize(actorDto.InventoryDto); Armory.Initialize(this, actorDto.ArmoryDto); Skills.Initialize(actorDto.SkillsDto); SkinnedMeshRenderer skinnedMeshRenderer = GetComponentInChildren <SkinnedMeshRenderer>(); Face.Initialize(skinnedMeshRenderer, actorDto.FeaturesDto); Body.Initialize(skinnedMeshRenderer, actorDto.FeaturesDto); if (Playable) { Squad.AddToSquad(this); } }
public ArmoryDto(Armory armory) { EquipmentDtos = new ItemDto[Enum.GetValues(typeof(SlotType)).Length]; foreach (KeyValuePair <SlotType, Attachment> pair in armory.Equipments) { EquipmentDtos[(int)pair.Key] = (pair.Value.IsAttached) ? new ItemDto(pair.Value.Equipment.EquipmentData.ID, pair.Value.Equipment.Amount) : new ItemDto(); } }
public ActionResult DeleteConfirmed(int id) { Armory armory = db.Armories.Find(id); db.Armories.Remove(armory); db.SaveChanges(); return(RedirectToAction("Index")); }
private void Awake() { _Armory = GetComponentInParent <Armory>(); _ANM = GetComponent <Animator>(); _Armory.OnItemDispense += DispenseItem; _Armory.OnEnterRange += EnterRangeEffect; _Armory.OnLeaveRange += LeaveRangeEffect; _SP.sprite = _Armory.itemToDispense.gameSprite; }
void Awake() { //singleton design pattern if(instance == null) instance = this; else if(instance != this) Destroy (gameObject); //since player inventory should persist over scenes, this object should not be destroyed on load DontDestroyOnLoad(gameObject); }
void InitSingleton() { if (instance != null) { Debug.LogError("More than one Armory detected"); } else { instance = this; } }
//private Loading _loader; // Start is called before the first frame update private void Start() { DontDestroyOnLoad(this.gameObject); Armory = ConfigReader.ParseArmory(); Terrain[] terrains = GameObject.FindObjectsOfType <Terrain>(); TerrainData = new TerrainMap(terrains, SceneBuildId); PathFinderData = new PathfinderData( TerrainData, Armory.UniqueMobilityTypes, SceneBuildId); }
public void addWeapon(string weaponName) { Dictionary <string, float> weaponDict = Armory.getWeapon(weaponName); if (weaponDict["weaponType"] == 1.0f) { addRangedWeapon(weaponName, weaponDict); } else if (weaponDict["weaponType"] == 0f) { addMeleeWeapon(weaponName, weaponDict); } }
static void Main(string[] args) { Armory irak = new Armory(); irak.AddWeapon(new BaseWeapon(EWeaponTypes.Submachine_gun)); irak.AddWeapon(new BaseWeapon(EWeaponTypes.Sniper)); irak.AddWeapon(new BaseWeapon(EWeaponTypes.Shotgun)); irak.AddWeapon(new BaseWeapon(EWeaponTypes.Machine_gun)); irak.AddWeapon(new BaseWeapon(EWeaponTypes.Marksman)); Console.WriteLine(" Armory "); irak.stock.ForEach(x => { x.Aim_And_Fire(); }); Console.WriteLine(" ----$$$--- "); MyCollection naziSoldiers = new MyCollection(); naziSoldiers[0] = new Item(new AirforceSoldierBehavior(new BaseWeapon(EWeaponTypes.Submachine_gun))); naziSoldiers[1] = new Item(new AirforceSoldierBehavior(new SideSaddlesForWeapon(new SuppressorForWeapon(new BaseWeapon(EWeaponTypes.Marksman))))); naziSoldiers[2] = new Item(new NavyforceSoldierBehavior(new SideSaddlesForWeapon(new BaseWeapon(EWeaponTypes.Shotgun)))); naziSoldiers[3] = new Item(new AirforceSoldierBehavior(new SideSaddlesForWeapon(new BaseWeapon(EWeaponTypes.Shotgun)))); Console.WriteLine(" Iterating over NaziSoldiers:"); Printer.Print(naziSoldiers); MyCollection redSoldiers = new MyCollection(); redSoldiers[0] = new Item(new GroundforcesSoldierBehavior(new BaseWeapon(EWeaponTypes.Marksman))); redSoldiers[1] = new Item(new GroundforcesSoldierBehavior(new SuppressorForWeapon(new SuppressorForWeapon(new BaseWeapon(EWeaponTypes.Marksman))))); redSoldiers[2] = new Item(new AirforceSoldierBehavior(new SideSaddlesForWeapon(new BaseWeapon(EWeaponTypes.Shotgun)))); redSoldiers[3] = new Item(new GroundforcesSoldierBehavior(new SideSaddlesForWeapon(new BaseWeapon(EWeaponTypes.Shotgun)))); Console.WriteLine(" Iterating over RedSoldiers:"); Printer.Print(redSoldiers); Console.WriteLine("-------------- Start Fight ------------------"); BattleFieldFactory battleField = new GermanBattleFieldFactory(); LiveWar war = new LiveWar(battleField, naziSoldiers, redSoldiers); war.StartWar(new AirFightLogicStrategy()); Console.WriteLine(" Iterating over NaziSoldiers After Fight"); Printer.Print(naziSoldiers); Console.WriteLine("Deads : " + Counter.DeadCounter(naziSoldiers)); Console.WriteLine("Lives : " + Counter.LiveCounter(naziSoldiers)); Console.WriteLine("\n Iterating over RedSoldiers After Fight"); Printer.Print(redSoldiers); Console.WriteLine("Deads : " + Counter.DeadCounter(redSoldiers)); Console.WriteLine("Lives : " + Counter.LiveCounter(redSoldiers)); }
// GET: Armories/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Armory armory = db.Armories.Find(id); if (armory == null) { return(HttpNotFound()); } return(View(armory)); }
//Robot robot1; //Robot robot2; //Robot robot3; //Constructor public Fleet() { weapon = new Armory(); string robot1 = "Mr. Stabby "; string robot2 = "Glitch "; string robot3 = "3-Sleepy-o "; fleet = new List <Robot>(); RobotWeaponChoice(robot1); RobotWeaponChoice(robot2); RobotWeaponChoice(robot3); fleet.Add(new Robot(robot1, weapon.weaponsChoice[0])); fleet.Add(new Robot(robot2, weapon.weaponsChoice[1])); fleet.Add(new Robot(robot3, weapon.weaponsChoice[2])); }
public ActionResult Edit([Bind(Include = "ArmoryID,Name,Color,Photo,TopID,BottomID,ShoeID,AccID,SeasonID,OccasionID")] Armory armory) { if (ModelState.IsValid) { db.Entry(armory).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.AccID = new SelectList(db.Accessories, "AccID", "Name", armory.AccID); ViewBag.BottomID = new SelectList(db.Bottoms, "BottomID", "Name", armory.BottomID); ViewBag.OccasionID = new SelectList(db.Occasions, "OccasionID", "Name", armory.OccasionID); ViewBag.SeasonID = new SelectList(db.Seasons, "SeasonID", "Name", armory.SeasonID); ViewBag.ShoeID = new SelectList(db.Shoes, "ShoeID", "Name", armory.ShoeID); ViewBag.TopID = new SelectList(db.Tops, "TopID", "Name", armory.TopID); return(View(armory)); }
private void AddItemByName(string name, bool useArmory, bool useWowhead) { Item newItem = null; // ignore empty strings if (name.Length <= 0) { return; } // try the armory (if requested) if (useArmory) { Int32 item_id = Armory.GetItemIdByName(name); if (item_id > 0) { newItem = Item.LoadFromId(item_id, true, true, false); } } // try wowhead (if requested) if ((newItem == null) && useWowhead) { // make sure we don't get some bad input that is going to mess with our gem info passing if (!name.Contains(".")) { // need to add + where the spaces are string wowhead_name = name.Replace(' ', '+'); // we can now pass it through the normal URI newItem = Wowhead.GetItem(wowhead_name + ".0.0.0", true); if (newItem != null) { ItemCache.AddItem(newItem, true); } } } if (newItem == null) { MessageBox.Show("Unable to load item: " + name + ".", "Item not found.", MessageBoxButtons.OK); } else { AddNewItemToListView(newItem); } }
public GuiObject BuildArmoryWindow(Armory armory) { GuiObject window = new GuiObject(new Rect(0, 0, 300, 500), "LeftPane", "Armory"); Func <ItemCount, int, int, int> DrawItemBox = delegate(ItemCount i, int y, int w) { GUI.Box(new Rect(5, y, w - 110, 40), i.item.GetName() + " -- " + i.amount); GUI.Label(new Rect(10, y + 20, w - 110, 20), i.item.GetDescription()); if (GUI.Button(new Rect(w - 100, y, 80, 20), "Take")) { man.GetComponent <Inventory>().AddToInventory(armory.TakeItem(i.item)); } if (i.amount > 1 && GUI.Button(new Rect(w - 100, y + 22, 80, 18), "Take All")) { man.GetComponent <Inventory>().AddToInventory(armory.TakeItem(i.item, i.amount)); } return(45); }; Vector2 pos = Vector2.zero; window.AddChild(new GuiObject(new Rect(5, 25, 290, 470), (g) => { int numItems = armory.GetNumItems(); pos = GUI.BeginScrollView(g.rect, pos, new Rect(0, 0, g.rect.width - 20, numItems * 45 + 40)); int ypos = 5; foreach (var a in armory.armors) { ypos += DrawItemBox(a, ypos, (int)g.rect.width); } ypos += 20; foreach (var w in armory.weapons) { ypos += DrawItemBox(w, ypos, (int)g.rect.width); } ypos += 20; foreach (var p in armory.potions) { ypos += DrawItemBox(p, ypos, (int)g.rect.width); } GUI.EndScrollView(); }, "ItemList", "")); return(window); }
void Start() { character = GetComponent <Character>(); characterAnimator = GetComponent <CharacterAnimator>(); characterMovement = GetComponent <CharacterMovement>(); evolvingBody = GetComponent <EvolvingBody>(); audioSource = GetComponent <AudioSource>(); armory = ReferenceManager.Instance.armory.GetComponent <Armory>(); GetWeapon(); Chrono.Instance.After(0.1f, () => { if (gameObject == ReferenceManager.Instance.player) { evolvingBody.Evolve(character.evolutionProperties.initialEvolution); } }); }
// GET: Armories/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Armory armory = db.Armories.Find(id); if (armory == null) { return(HttpNotFound()); } ViewBag.AccID = new SelectList(db.Accessories, "AccID", "Name", armory.AccID); ViewBag.BottomID = new SelectList(db.Bottoms, "BottomID", "Name", armory.BottomID); ViewBag.OccasionID = new SelectList(db.Occasions, "OccasionID", "Name", armory.OccasionID); ViewBag.SeasonID = new SelectList(db.Seasons, "SeasonID", "Name", armory.SeasonID); ViewBag.ShoeID = new SelectList(db.Shoes, "ShoeID", "Name", armory.ShoeID); ViewBag.TopID = new SelectList(db.Tops, "TopID", "Name", armory.TopID); return(View(armory)); }
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); Tiles.Content = Content; //Laddar från XML weaponXML = Content.Load <Weapon>("XMLConfigs\\Weapons\\Weapon_Basic"); armoryXML = Content.Load <Armory>("XMLConfigs\\Armory\\Armory_Basic"); //Fonts spriteFont = Content.Load <SpriteFont>("Fonts/DebugFont"); spriteFontBold = Content.Load <SpriteFont>("Fonts/DebugFontBold"); //player2 = Content.Load<Player2>("XMLConfigs\\Player\\Player2").Clone() as Player2; map.Generate(new int[, ] { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, }, }, 64); player = Content.Load <Player>("XMLConfigs\\Player\\Player1"); player.LoadContent(Content); GC.Collect(); }
public static Armory getInstance() { if(inst == null) inst = new Armory(); return inst; }
/// <summary> /// Initialization /// </summary> void Start() { this._log = LoggerManager.CreateLogger(typeof(InventoryManager)); Armory.LoadWeapons(this.WeaponPacks.SelectMany(x => x.Weapons).ToArray()); }
public GuiObject BuildArmoryWindow(Armory armory) { GuiObject window = new GuiObject(new Rect(0, 0, 300, 500), "LeftPane", "Armory"); Func<ItemCount, int, int, int> DrawItemBox = delegate(ItemCount i, int y, int w) { GUI.Box(new Rect(5, y, w - 110, 40), i.item.GetName() + " -- " + i.amount); GUI.Label(new Rect(10, y + 20, w - 110, 20), i.item.GetDescription()); if (GUI.Button(new Rect(w - 100, y, 80, 20), "Take")) { man.GetComponent<Inventory>().AddToInventory(armory.TakeItem(i.item)); } if (i.amount > 1 && GUI.Button(new Rect(w - 100, y + 22, 80, 18), "Take All")) { man.GetComponent<Inventory>().AddToInventory(armory.TakeItem(i.item, i.amount)); } return 45; }; Vector2 pos = Vector2.zero; window.AddChild(new GuiObject(new Rect(5, 25, 290, 470), (g) => { int numItems = armory.GetNumItems(); pos = GUI.BeginScrollView(g.rect, pos, new Rect(0, 0, g.rect.width - 20, numItems * 45 + 40)); int ypos = 5; foreach (var a in armory.armors) { ypos += DrawItemBox(a, ypos, (int)g.rect.width); } ypos += 20; foreach (var w in armory.weapons) { ypos += DrawItemBox(w, ypos, (int)g.rect.width); } ypos += 20; foreach (var p in armory.potions) { ypos += DrawItemBox(p, ypos, (int)g.rect.width); } GUI.EndScrollView(); }, "ItemList", "")); return window; }
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); Tiles.Content = Content; //Laddar från XML weaponXML = Content.Load<Weapon>("XMLConfigs\\Weapons\\Weapon_Basic"); armoryXML = Content.Load<Armory>("XMLConfigs\\Armory\\Armory_Basic"); //Fonts spriteFont = Content.Load<SpriteFont>("Fonts/DebugFont"); spriteFontBold = Content.Load<SpriteFont>("Fonts/DebugFontBold"); //player2 = Content.Load<Player2>("XMLConfigs\\Player\\Player2").Clone() as Player2; map.Generate(new int[,] { {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,}, {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,}, }, 64); player = Content.Load<Player>("XMLConfigs\\Player\\Player1"); player.LoadContent(Content); GC.Collect(); }
void Awake() { inst = this; }
//CHECK THE PATHFINDER void AddStuffToPlayer(TroopScript player,int faction,muhClasses muhclass,Chief leader, int Attack,int Defence,int HitPoints,int Speed,int NumberOfSoldiers, Weaponry _weapon, Armory _armor) { // Classes ClassToSet = Classes.fromList(muhclass); player.Faction = faction; player.SetClassDONTUSETHISAREYOUSUREYOUWANTTOUSETHISYOUREALLYSHOULDNT(muhclass); player.SetChief(leader); player.SetBaseAttack(Attack); player.SetBaseDefence(Defence); player.SetBaseHitpoints(HitPoints); player.SetBaseSpeed(Speed); player.SetNumber(NumberOfSoldiers); player.SetWeapon(_weapon); player.SetArmor(_armor); }
private static XmlNode LoadDetailNode(Armory armory, CharacterDetail detail, string realmName, string characterName) { string searchString = string.Empty; switch (detail) { case CharacterDetail.Basic: case CharacterDetail.CharacterSheet: // http://eu.wowarmory.com/character-sheet.xml?r=Sporeggar&n=Zoing searchString = string.Format("character-sheet.xml?r={0}&n={1}", HttpUtility.UrlEncode(realmName), HttpUtility.UrlEncode(characterName)); break; case CharacterDetail.Reputation: // http://eu.wowarmory.com/character-reputation.xml?r=Sporeggar&n=Zoing searchString = string.Format("character-reputation.xml?r={0}&n={1}", HttpUtility.UrlEncode(realmName), HttpUtility.UrlEncode(characterName)); break; case CharacterDetail.Skills: // http://eu.wowarmory.com/character-skills.xml?r=Sporeggar&n=Zoing searchString = string.Format("character-skills.xml?r={0}&n={1}", HttpUtility.UrlEncode(realmName), HttpUtility.UrlEncode(characterName)); break; case CharacterDetail.Talents: // http://eu.wowarmory.com/character-talents.xml?r=Sporeggar&n=Zoing searchString = string.Format("character-talents.xml?r={0}&n={1}", HttpUtility.UrlEncode(realmName), HttpUtility.UrlEncode(characterName)); break; case CharacterDetail.Arena: // http://eu.wowarmory.com/character-arenateams.xml?r=Sporeggar&n=Zoing searchString = string.Format("character-arenateams.xml?r={0}&n={1}", HttpUtility.UrlEncode(realmName), HttpUtility.UrlEncode(characterName)); break; } if (searchString != string.Empty) { XmlDocument searchResults = armory.Request(searchString); XmlNode characterDetails = searchResults.SelectSingleNode("/page/characterInfo"); return characterDetails; } else { return null; } }
public static Armory FromName (ArmoryName name){ Armory ret = new Armory(); switch(name){ case ArmoryName.TestPlateArmor: ret = new Armory(){ NameOfTheEquip = ArmoryName.TestPlateArmor.ToString(), Attack = 0, Defence = 10, minRange = 0, maxRange = 1, speedModifier = 0.6f, movModifier = 0.6f, handsUsed = NumberOfHands.NotAWeapon, weapType = WeaponType.NotAWeapon, armrType = ArmorType.Heavy }; break; case ArmoryName.TestChainMail: ret = new Armory(){ NameOfTheEquip = ArmoryName.TestChainMail.ToString(), Attack = 0, Defence = 7, minRange = 0, maxRange = 1, speedModifier = 0.9f, movModifier = 0.95f, handsUsed = NumberOfHands.NotAWeapon, weapType = WeaponType.NotAWeapon, armrType = ArmorType.Heavy }; break; case ArmoryName.TestBrigandine: ret = new Armory(){ NameOfTheEquip = ArmoryName.TestBrigandine.ToString(), Attack = 0, Defence = 6, minRange = 0, maxRange = 1, speedModifier = 0.9f, movModifier = 0.99f, handsUsed = NumberOfHands.NotAWeapon, weapType = WeaponType.NotAWeapon, armrType = ArmorType.Light }; break; case ArmoryName.TestGambeson: ret = new Armory(){ NameOfTheEquip = ArmoryName.TestGambeson.ToString(), Attack = 0, Defence = 10, minRange = 0, maxRange = 1, speedModifier = 1f, movModifier = 1f, handsUsed = NumberOfHands.NotAWeapon, weapType = WeaponType.NotAWeapon, armrType = ArmorType.Light }; break; case ArmoryName.TestConfortableClothes: ret = new Armory(){ NameOfTheEquip = ArmoryName.TestConfortableClothes.ToString(), Attack = 0, Defence = 2, minRange = 0, maxRange = 1, speedModifier = 1, movModifier = 1, handsUsed = NumberOfHands.NotAWeapon, weapType = WeaponType.NotAWeapon, armrType = ArmorType.NoArmor }; break; } return ret; }
public void SetArmor(Armory armor) { ArmorAdopted = armor; }