From 6c182e847708381ec50e9e9ea47ea5d128ea02e8 Mon Sep 17 00:00:00 2001 From: Jayden Bailey Date: Tue, 23 Jan 2024 17:39:54 +0000 Subject: [PATCH] py: remove monsters that don't exist any more (#61) --- cdn/json/monsters.json | 35 ----------------------------------- scripts/generateMonsters.py | 7 +++++-- 2 files changed, 5 insertions(+), 37 deletions(-) diff --git a/cdn/json/monsters.json b/cdn/json/monsters.json index d94252bf..2ac4d162 100644 --- a/cdn/json/monsters.json +++ b/cdn/json/monsters.json @@ -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", diff --git a/scripts/generateMonsters.py b/scripts/generateMonsters.py index 2baff1aa..18434bb6 100644 --- a/scripts/generateMonsters.py +++ b/scripts/generateMonsters.py @@ -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 = {