From e7192fe27ff0f690be0ef8bf57208f472152b197 Mon Sep 17 00:00:00 2001 From: nwjgit Date: Wed, 28 Aug 2024 11:32:10 -0500 Subject: [PATCH] Crab --- src/data/monsters_data.json | 40 +++++++++++++++++++++++++ src/simulation/monsters/low/a-f/Crab.ts | 18 +++++++++++ src/simulation/monsters/low/index.ts | 2 ++ 3 files changed, 60 insertions(+) create mode 100644 src/simulation/monsters/low/a-f/Crab.ts diff --git a/src/data/monsters_data.json b/src/data/monsters_data.json index b13f59322..685f958ea 100644 --- a/src/data/monsters_data.json +++ b/src/data/monsters_data.json @@ -8199,6 +8199,46 @@ "slayerXP": 34, "assignableSlayerMasters": ["turael", "spria", "mazchna"] }, + "4819": { + "members": true, + "combatLevel": 23, + "hitpoints": 19, + "maxHit": 3, + "attackType": ["crush"], + "attackSpeed": 4, + "aggressive": false, + "poisonous": false, + "immuneToPoison": false, + "immuneToVenom": false, + "attributes": [], + "category": [], + "examineText": "Nice claw!", + "wikiName": "Crab (Level 23)", + "wikiURL": "https://oldschool.runescape.wiki/w/Crab#Level_23", + "attackLevel": 19, + "strengthLevel": 20, + "defenceLevel": 26, + "magicLevel": 1, + "rangedLevel": 1, + "attackStab": 0, + "attackSlash": 0, + "attackCrush": 0, + "attackMagic": 0, + "attackRanged": 0, + "defenceStab": 0, + "defenceSlash": 0, + "defenceCrush": 0, + "defenceMagic": 0, + "defenceRanged": 0, + "attackAccuracy": 0, + "meleeStrength": 0, + "rangedStrength": 0, + "magicDamage": 0, + "isSlayerMonster": false, + "slayerLevelRequired": 0, + "slayerXP": 0, + "assignableSlayerMasters": [] + }, "4863": { "members": true, "combatLevel": 9, diff --git a/src/simulation/monsters/low/a-f/Crab.ts b/src/simulation/monsters/low/a-f/Crab.ts new file mode 100644 index 000000000..2c54f6da3 --- /dev/null +++ b/src/simulation/monsters/low/a-f/Crab.ts @@ -0,0 +1,18 @@ +import LootTable from "../../../../structures/LootTable"; +import SimpleMonster from "../../../../structures/SimpleMonster"; + +const freshCrabTable = new LootTable().add("Fresh crab claw", 1, 1).add("Fresh crab shell", 1, 1); + +export const CrabTable = new LootTable() + .every("Crab meat") + + .add(new LootTable(), 5, 1) // Nothing drop + .add(freshCrabTable, 4, 1) + .add("Oyster", 1, 1); + +export default new SimpleMonster({ + id: 4819, + name: "Crab", + table: CrabTable, + aliases: ["crab"], +}); diff --git a/src/simulation/monsters/low/index.ts b/src/simulation/monsters/low/index.ts index 06819d167..7ba90748a 100644 --- a/src/simulation/monsters/low/index.ts +++ b/src/simulation/monsters/low/index.ts @@ -50,6 +50,7 @@ import ChompyBird from "./a-f/ChompyBird"; import Cockatrice from "./a-f/Cockatrice"; import Cow from "./a-f/Cow"; import CowCalf from "./a-f/CowCalf"; +import Crab from "./a-f/Crab"; import CrawlingHand from "./a-f/CrawlingHand"; import Crocodile from "./a-f/Crocodile"; import CryptRat from "./a-f/CryptRat"; @@ -534,4 +535,5 @@ export const allLowMonsters = { ManiacalMonkey, ZombiePirate, TormentedDemon, + Crab, };