Browse Source

refactoring: created mobs.json, outsourced the mobs

remotes/origin/locations
Tanja Herche 2 years ago
parent
commit
1208eda908
  1. 57
      src/main/resources/gameconfig.json
  2. 53
      src/main/resources/mobs.json

57
src/main/resources/gameconfig.json

@ -24,14 +24,7 @@
"Stein" "Stein"
], ],
"mobs": [ "mobs": [
{
"name": "Big Foot",
"hp": 50,
"damage": "10-15",
"items": [
"Fell"
]
}
"Big Foot"
] ]
}, },
{ {
@ -41,14 +34,7 @@
"Treibholz" "Treibholz"
], ],
"mobs": [ "mobs": [
{
"name": "Riesenkrabbe",
"damage": "10-15",
"hp": 50,
"items": [
"Krabbenschere"
]
}
"Riesenkrabbe"
] ]
}, },
{ {
@ -58,15 +44,7 @@
"Schnee" "Schnee"
], ],
"mobs": [ "mobs": [
{
"name": "Yeti",
"hp": 55,
"items": [
"Fell",
"Yetikralle"
],
"damage": "20-25"
}
"Yeti"
] ]
}, },
{ {
@ -76,15 +54,7 @@
"Feuerstein" "Feuerstein"
], ],
"mobs": [ "mobs": [
{
"name": "Loewe",
"damage": "10-15",
"items": [
"Fell",
"Löwenkralle"
],
"hp": 30
}
"Loewe"
] ]
}, },
{ {
@ -94,15 +64,7 @@
"Giftblume" "Giftblume"
], ],
"mobs": [ "mobs": [
{
"name": "Drache",
"hp": 55,
"damage": "15-20",
"items": [
"Drachenzahn",
"Drachenhaut"
]
}
"Drache"
] ]
}, },
{ {
@ -112,14 +74,7 @@
"Kaktus" "Kaktus"
], ],
"mobs": [ "mobs": [
{
"name": "Mumie",
"items": [
"Knochen"
],
"hp": 40,
"damage": "10-15"
}
"Mumie"
] ]
} }
] ]

53
src/main/resources/mobs.json

@ -0,0 +1,53 @@
[
{
"name": "Big Foot",
"hp": 50,
"damage": "10-15",
"items": [
"Fell"
]
},
{
"name": "Riesenkrabbe",
"damage": "10-15",
"hp": 50,
"items": [
"Krabbenschere"
]
},
{
"name": "Yeti",
"hp": 55,
"items": [
"Fell",
"Yetikralle"
],
"damage": "20-25"
},
{
"name": "Loewe",
"damage": "10-15",
"items": [
"Fell",
"Löwenkralle"
],
"hp": 30
},
{
"name": "Drache",
"hp": 55,
"damage": "15-20",
"items": [
"Drachenzahn",
"Drachenhaut"
]
},
{
"name": "Mumie",
"items": [
"Knochen"
],
"hp": 40,
"damage": "10-15"
}
]
Loading…
Cancel
Save