Skip to content

Commit

Permalink
py: remove monsters that don't exist any more (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayktaylor committed Jan 23, 2024
1 parent 4992dfa commit 6c182e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 37 deletions.
35 changes: 0 additions & 35 deletions cdn/json/monsters.json
Original file line number Diff line number Diff line change
Expand Up @@ -8339,41 +8339,6 @@
],
"attributes": []
},
{
"id": 12586,
"name": "Bloodthirsty Drake",
"version": "",
"image": "Bloodthirsty Drake.png",
"level": 576,
"speed": 4,
"size": 5,
"skills": [
405,
200,
945,
450,
360,
420
],
"offensive": [
0,
0,
0,
0,
40,
12
],
"defensive": [
100,
20,
150,
100,
60
],
"attributes": [
"dragon"
]
},
{
"id": 12588,
"name": "Bloodthirsty Hydra",
Expand Down
7 changes: 5 additions & 2 deletions scripts/generateMonsters.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,11 @@ def main():
if re.match("^([A-z]*):", k):
continue

# Skip "monsters" that are actually non-interactive scenery
if has_category(po['Category'], 'Non-interactive scenery'):
# Skip "monsters" that are actually non-interactive scenery, or don't exist
if (
has_category(po['Category'], 'Non-interactive scenery')
or has_category(po['Category'], 'Discontinued content')
):
continue

monster = {
Expand Down

0 comments on commit 6c182e8

Please sign in to comment.