Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ItemList = {};
- MonsterList = {};
- function MakeItemList()
- {
- Weapons = {};
- Weapons.ShortSword = {
- name: 'Short Sword',
- itemQuality: 'Common',
- subType: 'Sword',
- color: 'black',
- image: 'ShortSword',
- minDamage: 2,
- maxDamage: 4,
- strength: 1,
- agility: 2,
- value: 15
- };
- Weapons.HandAxe = {
- name: 'Hand Axe',
- itemQuality: 'Common',
- subType: 'Axe',
- color: 'black',
- image: 'HandAxe',
- minDamage: 1,
- maxDamage: 5,
- strength: 2,
- agility: 1,
- value: 20
- };
- ItemList.Weapons = Weapons;
- Armors = {};
- Armors.LeatherArmor = {
- name: 'Leather Armor',
- itemQuality: 'Common',
- subType: 'chest',
- color: 'black',
- image: 'LeatherArmor',
- defense: 3,
- agility: 3,
- dexterity: 2,
- endurance: 1,
- value: 40
- };
- Armors.ReinforcedLeatherVest = {
- name: 'Reinforced Leather Vest',
- itemQuality: 'Uncommon',
- subType: 'chest',
- color: 'green',
- image: 'ReinforcedLeatherVest',
- defense: 7,
- agility: 6,
- dexterity: 4,
- endurance: 2,
- value: 90
- };
- ItemList.Armors = Armors;
- }
- function NewDrop(item, chance)
- {
- drop = {};
- drop.item = item;
- drop.chance = chance;
- return drop;
- }
- function MakeMonsterList()
- {
- Bandit = {};
- Bandit.Drops = [];
- Bandit.Drops.push(NewDrop(ItemList.Weapons.ShortSword, 50));
- Bandit.Drops.push(NewDrop(ItemList.Weapons.LeatherArmor, 20));
- Bandit.Stats = {
- HP: 2000,
- Strength = 15,
- Exp = 180
- };
- MonsterList.Bandit = Bandit;
- Dragon = {};
- Dragon.Drops = [];
- Dragon.Drops.push(NewDrop(ItemList.Weapons.HandAxe, 40));
- Dragon.Drops.push(NewDrop(ItemList.Weapons.ReinforcedLeatherVest, 35));
- Dragon.Stats = {
- HP: 50000,
- Strength = 200,
- Exp = 3500
- };
- MonsterList.Dragon = Dragon;
- }
Advertisement
Add Comment
Please, Sign In to add comment