public void AddMember(NPC npc) { if (_myParty.Count > 4) return; _myParty.Add(npc); npc.PlayerParty = _myParty.Count - 1; }
public Inventory(NPC p, int slot, int locked) { Holder = p; for (int s = 0; s < slot; s++) { Slot.Add(new InventorySpace(s >= locked)); } }
public Equipment(NPC p) { Holder = p; Ammunition = null; Armor = null; Helmet = null; Boot = null; Cape = null; Bracelet1 = null; Bracelet2 = null; Ring1 = null; Ring2 = null; Storage = null; Weapon1 = null; Weapon2 = null; Necklace = null; }
public void LoadPlayerData() { PlayerData p = new PlayerData(); NPC n = new NPC("ASD", 0, 0, 0, false, 0, 0, 0, 0, 0, false, 8, 0, 0, 0); n.Inventory[0] = new SpawnItems(1); n.Inventory[1] = new SpawnItems(0); n.Inventory[2] = new SpawnItems(0); n.Inventory[3] = new SpawnItems(0); n.Inventory[4] = new SpawnItems(0); p.MainParty.MyParty.Add(n); MyPlayerData.Add(p); }
public void Picked() { CharacterCreationGUI g = (CharacterCreationGUI)Program.State[0].GameGUI[4]; CharacterCreationName b = (CharacterCreationName)g.MyButton[1]; if (b.Text.Equals("")) { } else { NPC n = new NPC(b.Text, (int)LivingObjectType.NPC, g.CurGender, 0, false, g.CurBody, g.CurFace, g.CurHair, g.CurHairColor, (int)MapType.MainMap, true, 4, 8, 0, g.CurrentSession.MyParty.Count); n.Inventory[0] = new SpawnItems(1); g.CurrentSession.MyParty.Add(n); } Program.State[0].GameGUI[4].Visibility = false; Program.State[0].GameGUI[3].Visibility = true; Program.State[0].CurrentGUI = 3; }
public void RemoveMember(NPC npc) { npc.PlayerParty = -1; _myParty.Remove(npc); }