Added save for inventory, slot and item, changed item generation, fixed luck in calculation

This commit is contained in:
Nicola Sovic
2022-07-04 12:40:24 +02:00
parent dd0251cb3e
commit 22137fffde
7 changed files with 274 additions and 19 deletions

134
save.json
View File

@@ -1,29 +1,143 @@
{
"player": {
"playername": "",
"playername": "Nicola",
"maxHealth": 110,
"maxSecondary": 10,
"secondary": 10,
"secondary": 15,
"health": 110,
"strength": 7,
"dexterity": 5,
"intelligence": 3,
"level": 0,
"experience": 0,
"maxExperience": 10,
"level": 3,
"experience": 6,
"maxExperience": 80,
"race": "Human",
"role": "Warrior",
"points": 0,
"points": 9,
"healthRegen": 30,
"secondaryRegen": 5,
"isDodging": "False",
"killcount": 0,
"killcount": 4,
"luck": 26,
"difficulty": 0
},
"world": {
"cityAmount": 5,
"maxCityAmount": 5,
"currentTile": "0/0/0",
"currentTile": "-1/0/1",
"map": {
"tile0": "./save/tile0.json",
"tile1": "./save/tile1.json"
}
},
"inventory": {
"equipment": {
"head": "empty",
"rightHand": "empty",
"leftHand": "empty",
"amulet": "empty",
"feet": "empty",
"shoulders": "empty",
"chest": "empty",
"ring": "empty"
},
"bags": {
"slot0": {
"bag1": "empty",
"bag2": "empty",
"bag3": {
"rarity": "COMMON",
"place": "BOOTS",
"itemName": "Common boots of mana",
"MP": 12
}
},
"slot1": {
"bag1": "empty",
"bag2": "empty",
"bag3": "empty"
},
"slot2": {
"bag1": "empty",
"bag2": "empty",
"bag3": "empty"
},
"slot3": {
"bag1": "empty",
"bag2": "empty",
"bag3": "empty"
},
"slot4": {
"bag1": "empty",
"bag2": "empty",
"bag3": "empty"
},
"slot5": {
"bag1": "empty",
"bag2": "empty",
"bag3": "empty"
},
"slot6": {
"bag1": "empty",
"bag2": "empty",
"bag3": "empty"
},
"slot7": {
"bag1": "empty",
"bag2": "empty",
"bag3": "empty"
},
"slot8": {
"bag1": "empty",
"bag2": "empty",
"bag3": "empty"
},
"slot9": {
"bag1": "empty",
"bag2": "empty",
"bag3": "empty"
},
"slot10": {
"bag1": "empty",
"bag2": "empty",
"bag3": "empty"
},
"slot11": {
"bag1": "empty",
"bag2": "empty",
"bag3": "empty"
},
"slot12": {
"bag1": "empty",
"bag2": "empty",
"bag3": "empty"
},
"slot13": {
"bag1": "empty",
"bag2": "empty",
"bag3": "empty"
},
"slot14": {
"bag1": "empty",
"bag2": "empty",
"bag3": "empty"
},
"slot15": {
"bag1": "empty",
"bag2": "empty",
"bag3": "empty"
},
"slot16": {
"bag1": "empty",
"bag2": "empty",
"bag3": "empty"
},
"slot17": {
"bag1": "empty",
"bag2": "empty",
"bag3": "empty"
}
}
}
}
}
}