add load and save functions to classes

move files
update character creater to allowing to stack  classes
This commit is contained in:
2024-04-04 03:35:44 +02:00
parent 4616eda30e
commit d67e7a44cd
7 changed files with 211 additions and 112 deletions
+22 -7
View File
@@ -11,7 +11,7 @@
},
"logging": {
"enabled": false,
"enabled": true,
"file": {
"path": "./GameData/log",
"name": "debug.log"
@@ -26,7 +26,8 @@
"speed": 7,
"defense": 3,
"inventory_size": 3,
"fixed_type": false
"fixed_type": false,
"combineble": false
},
"Dragon": {
"hp": 100,
@@ -34,7 +35,8 @@
"speed": 15,
"defense": 10,
"inventory_size": 5,
"fixed_type": "Magician"
"fixed_type": "Magician",
"combineble": false
},
"Gnoll": {
"hp": 100,
@@ -42,7 +44,8 @@
"speed": 5,
"defense": 6,
"inventory_size": 10,
"fixed_type": "Warrior"
"fixed_type": "Warrior",
"combineble": false
},
"Elf": {
"hp": 100,
@@ -50,7 +53,8 @@
"defense": 3,
"speed": 8,
"inventory_size": 3,
"fixed_type": false
"fixed_type": false,
"combineble": false
},
"Wolf": {
"hp": 100,
@@ -58,7 +62,8 @@
"speed": 6,
"defense": 6,
"inventory_size": 4,
"fixed_type": false
"fixed_type": false,
"combineble": false
},
"Fox": {
"hp": 100,
@@ -66,7 +71,17 @@
"speed": 7,
"defense": 6,
"inventory_size": 4,
"fixed_type": false
"fixed_type": false,
"combineble": false
},
"Inflatable": {
"hp": 100,
"strength": 2,
"speed": 10,
"defense": 1,
"inventory_size": 0,
"fixed_type": "Magician",
"combineble": true
}
},
"types": [