Skip to content

Conversation

@mustyoshi
Copy link
Contributor

@mustyoshi mustyoshi commented Jul 24, 2024

I'd like to try doing some combat calculations, so I need the equipment stats, I'll also be doing it for the monsters.

I included moving the weight scoring to it's own function in this.

  {
    "id": 20408,
    "aliases": [],
    "name": "Dark bow",
    "examine": "A bow from a darker dimension.",
    "image": "File:Dark bow equipped.png",
    "isEquipable": true,
    "isAlchable": false,
    "isOnGrandExchange": false,
    "isTradeable": false,
    "isMembers": false,
    "isStackable": false,
    "options": [],
    "relatedItems": [],
    "value": 500,
    "weight": 1.814,
    "limit": 8,
    "equipmentStats": {
      "attackStab": 0,
      "attackSlash": 0,
      "attackCrush": 0,
      "attackMagic": 0,
      "attackRanged": 95,
      "defendStab": 0,
      "defendSlash": 0,
      "defendCrush": 0,
      "defendMagic": 0,
      "defendRanged": 0,
      "str": 0,
      "rangedStr": 0,
      "magicDamage": 0,
      "prayer": 0,
      "slot": "2h",
      "speed": 9,
      "attackRange": 10,
      "combatStyle": "Bow"
    },
    "isInMainGame": true
  }

@mustyoshi
Copy link
Contributor Author

@AntonyGarand I think I'd like to reorganize how Monster data is captured. In addition to the schema change I already pushed, I think I'd like to capture drop tables as their own json, to let us do the monster spawn information, which references a drop table by name, Goblins for example

{{LocLine
|name = Goblin
|location = West of [[Varrock]]
|levels = 5
|members = n
|mapID = 0
|plane = 0
|x:3118,y:3432|x:3119,y:3444|x:3121,y:3422|x:3126,y:3431|x:3126,y:3450
|mtype = pin
|dropversion = Drop table 2
}}

Curious how you feel about that.

@AntonyGarand
Copy link
Contributor

Sounds good to me!

Comment on lines 16 to 17
str: number;
rangedStr: number;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: str is the only shortened word: Any downsides to use the full strength instead?

@mustyoshi
Copy link
Contributor Author

Set the initial code for the monster spawn extractor, still need to do the typing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants