Exemplo n.º 1
0
        public void AddMember(NPC npc)
        {
            if (_myParty.Count > 4)
                return;

            _myParty.Add(npc);
            npc.PlayerParty = _myParty.Count - 1;
        }
Exemplo n.º 2
0
 public Inventory(NPC p, int slot, int locked)
 {
     Holder = p;
     for (int s = 0; s < slot; s++)
     {
         Slot.Add(new InventorySpace(s >= locked));
     }
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
 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;
        }
Exemplo n.º 6
0
 public void RemoveMember(NPC npc)
 {
     npc.PlayerParty = -1;
     _myParty.Remove(npc);
 }