Skip to content

Commit

Permalink
Merge pull request #439 from runejs/port/harvesting-item-configs
Browse files Browse the repository at this point in the history
add items configs for mining/wc, and make use of them
  • Loading branch information
Promises authored Jan 24, 2025
2 parents 8528f89 + 4af50c5 commit 2ed6e3a
Show file tree
Hide file tree
Showing 12 changed files with 413 additions and 118 deletions.
54 changes: 54 additions & 0 deletions data/config/items/equipment/amulets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"rs:amulet_of_glory": {
"game_id": 1704,
"examine": "A very powerful dragonstone amulet.",
"tradable": true,
"weight": 0.01,
"equippable": true,
"equipment_data": {
"equipment_slot": "neck",
"offensive_bonuses": {
"stab": 10,
"slash": 10,
"crush": 10,
"magic": 10,
"ranged": 10
},
"defensive_bonuses": {
"stab": 3,
"slash": 3,
"crush": 3,
"magic": 3,
"ranged": 3
},
"skill_bonuses": {
"prayer": 3,
"strength": 6,
"ranged": 0,
"magic": 0
}
},
"variations": [
{
"game_id": 1706,
"examine": "A dragonstone amulet with 1 magic charge.",
"suffix": "charged_1"
},
{
"game_id": 1708,
"examine": "A dragonstone amulet with 2 magic charges.",
"suffix": "charged_2"
},
{
"game_id": 1710,
"examine": "A dragonstone amulet with 3 magic charges.",
"suffix": "charged_3"
},
{
"game_id": 1712,
"examine": "A dragonstone amulet with 4 magic charges.",
"suffix": "charged_4"
}
]
}
}
7 changes: 7 additions & 0 deletions data/config/items/logs.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,12 @@
"rs:magic_pyre_logs": {
"extends": "rs:log",
"game_id": 1513
},
"rs:bark": {
"game_id": 3239,
"examine": "Bark from a hollow tree.",
"tradable": true,
"weight": 1,
"equippable": false
}
}
9 changes: 9 additions & 0 deletions data/config/items/quests/lost-city.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"rs:dramen_branch": {
"game_id": 771,
"examine": "A limb of the fabled Dramen tree.",
"tradable": false,
"weight": 2.267,
"equippable": false
}
}
44 changes: 34 additions & 10 deletions data/config/items/skills/crafting/gems.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,28 @@
"rs:uncut_gem_base": {
"examine": "This would be worth more cut.",
"weight": 0.003,
"tradable": true
"tradable": true,
"equippable": false
},
"rs:precious_gem_base": {
"examine": "This looks valuable.",
"rs:cut_gem_base": {
"examine": "A precious gem.",
"weight": 0.002,
"tradable": true
"tradable": true,
"equippable": false
}
},

"rs:uncut_opal": {
"extends": "rs:uncut_gem_base",
"game_id": 1625
},
"rs:uncut_jade": {
"extends": "rs:uncut_gem_base",
"game_id": 1627
},
"rs:uncut_red_topaz": {
"extends": "rs:uncut_gem_base",
"game_id": 1629
},
"rs:uncut_sapphire": {
"extends": "rs:uncut_gem_base",
"game_id": 1623
Expand All @@ -28,21 +41,32 @@
"extends": "rs:uncut_gem_base",
"game_id": 1617
},

"rs:opal": {
"extends": "rs:cut_gem_base",
"game_id": 1609
},
"rs:jade": {
"extends": "rs:cut_gem_base",
"game_id": 1611
},
"rs:red_topaz": {
"extends": "rs:cut_gem_base",
"game_id": 1613
},
"rs:sapphire": {
"extends": "rs:precious_gem_base",
"extends": "rs:cut_gem_base",
"game_id": 1607
},
"rs:emerald": {
"extends": "rs:precious_gem_base",
"extends": "rs:cut_gem_base",
"game_id": 1605
},
"rs:ruby": {
"extends": "rs:precious_gem_base",
"extends": "rs:cut_gem_base",
"game_id": 1603
},
"rs:diamond": {
"extends": "rs:precious_gem_base",
"extends": "rs:cut_gem_base",
"game_id": 1601
}
}
119 changes: 100 additions & 19 deletions data/config/items/skills/mining.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,128 @@
{
"rs:rune_essence": {
"game_id": 1436
"game_id": 1436,
"examine": "An unimbued rune.",
"tradable": true,
"weight": 0.002,
"equippable": false
},
"rs:clay": {
"game_id": 434
"game_id": 434,
"examine": "Some hard dry clay.",
"tradable": true,
"weight": 1,
"equippable": false
},
"rs:copper_ore": {
"game_id": 436
"game_id": 436,
"examine": "This needs refining.",
"tradable": true,
"weight": 2.267,
"equippable": false
},
"rs:tin_ore": {
"game_id": 438
"game_id": 438,
"examine": "This needs refining.",
"tradable": true,
"weight": 2.267,
"equippable": false
},
"rs:blurite_ore": {
"game_id": 668
"game_id": 668,
"examine": "Definitely blue.",
"tradable": false,
"weight": 2.267,
"equippable": false
},
"rs:limestone": {
"game_id": 3211
"game_id": 3211,
"examine": "Some limestone.",
"tradable": true,
"weight": 2.267,
"equippable": false
},
"rs:iron_ore": {
"game_id": 440
"game_id": 440,
"examine": "This needs refining.",
"tradable": true,
"weight": 2.267,
"equippable": false
},
"rs:silver_ore": {
"game_id": 442
"game_id": 442,
"examine": "This needs refining.",
"tradable": true,
"weight": 2.267,
"equippable": false
},
"rs:coal": {
"game_id": 453
"rs:coal":{
"game_id": 453,
"examine": "Hmm a non-renewable energy source!",
"tradable": true,
"weight": 2.267,
"equippable": false
},
"rs:gold_ore": {
"game_id": 444
},
"rs:granite": {
"game_id": 6983
"game_id": 444,
"examine": "This needs refining.",
"tradable": true,
"weight": 2.267,
"equippable": false
},
"rs:mithril_ore": {
"game_id": 447
"game_id": 447,
"examine": "This needs refining.",
"tradable": true,
"weight": 1.814,
"equippable": false
},
"rs:adamantite_ore": {
"game_id": 1761
"game_id": 449,
"examine": "This needs refining.",
"tradable": true,
"weight": 2.721,
"equippable": false
},
"rs:soft_clay": {
"game_id": 1761
"rs:soft_clay":{
"game_id": 1761,
"examine": "Clay soft enough to mould.",
"tradable": true,
"weight": 0.907,
"equippable": false
},
"rs:runite_ore": {
"game_id": 451
"game_id": 451,
"examine": "This needs refining.",
"tradable": true,
"weight": 2.267,
"equippable": false
},
"rs:pure_essence": {
"game_id": 7936,
"examine": "An unimbued rune of extra capability.",
"tradable": true,
"weight": 0.002,
"equippable": false
},
"rs:granite": {
"game_id": 6979,
"examine": "A tiny chunk of granite.",
"tradable": true,
"weight": 0.5,
"equippable": false,
"variations": [
{
"game_id": 6981,
"examine": "A small chunk of granite.",
"weight": 2,
"suffix": "2kg"
},
{
"game_id": 6983,
"examine": "A medium-sized chunk of granite.",
"weight": 5,
"suffix": "5kg"
}
]
}
}
Loading

0 comments on commit 2ed6e3a

Please sign in to comment.