Skip to content

Instantly share code, notes, and snippets.

@Corgan
Created August 25, 2023 15:38
Show Gist options
  • Save Corgan/724c5fc9857fc23484e8f55c7d5d1bf5 to your computer and use it in GitHub Desktop.
Save Corgan/724c5fc9857fc23484e8f55c7d5d1bf5 to your computer and use it in GitHub Desktop.
Adventuring Extra Data Package Example
{
"$schema": "https://melvoridle.com/assets/schema/gameData.json",
"namespace": "adventuring_extra",
"data": {
"skillData": [{
"skillID": "adventuring:Adventuring",
"data": {
"areas": [
{
"id": "Giants_Lair",
"name": "Giants Lair",
"media": "assets/images/Crossroads/Giants_Lair.svg",
"requirements": [
{
"type": "skill_level",
"level": 35
}
],
"height": 6,
"width": 5,
"floors": [
{
"monsters": [
{
"id": "adventuring_extra:HillGiant",
"weight": 100
}
],
"exit": [ "adventuring_extra:HillGiant", "adventuring_extra:HillGiant", "adventuring_extra:HillGiant" ]
},
{
"monsters": [
{
"id": "adventuring_extra:TurkelGiant",
"weight": 75
},
{
"id": "adventuring_extra:HillGiant",
"weight": 25
}
],
"exit": [ "adventuring_extra:TurkelGiant", "adventuring_extra:TurkelGiant", "adventuring_extra:HillGiant" ]
},
{
"monsters": [
{
"id": "adventuring_extra:TurkelGiant",
"weight": 100
}
],
"exit": [ "adventuring_extra:TurkelGiant", "adventuring_extra:TurkelGiant", "adventuring_extra:TurkelGiant" ]
},
{
"monsters": [
{
"id": "adventuring_extra:GiantMoth",
"weight": 25
},
{
"id": "adventuring_extra:TurkelGiant",
"weight": 75
}
],
"exit": [ "adventuring_extra:GiantMoth", "adventuring_extra:TurkelGiant", "adventuring_extra:TurkelGiant" ]
},
{
"monsters": [
{
"id": "adventuring_extra:GiantDragon",
"weight": 100
}
],
"exit": [ "adventuring_extra:GiantDragon", "adventuring_extra:GiantDragon", "adventuring_extra:GiantDragon" ]
}
]
},
{
"id": "Serpents_Pass",
"name": "Serpents Pass",
"media": "assets/images/Crossroads/Serpents_Pass.svg",
"requirements": [
{
"type": "skill_level",
"level": 50
}
],
"height": 6,
"width": 5,
"floors": [
{
"monsters": [
{
"id": "adventuring_extra:ViciousSerpent",
"weight": 100
}
],
"exit": [ "adventuring_extra:ViciousSerpent", "adventuring_extra:ViciousSerpent", "adventuring_extra:ViciousSerpent" ]
},
{
"monsters": [
{
"id": "adventuring_extra:ViciousSerpent",
"weight": 75
},
{
"id": "adventuring_extra:Leach",
"weight": 25
}
],
"exit": [ "adventuring_extra:ViciousSerpent", "adventuring_extra:ViciousSerpent", "adventuring_extra:Leach" ]
},
{
"monsters": [
{
"id": "adventuring_extra:NoxiousSerpent",
"weight": 100
}
],
"exit": [ "adventuring_extra:NoxiousSerpent", "adventuring_extra:NoxiousSerpent", "adventuring_extra:NoxiousSerpent" ]
},
{
"monsters": [
{
"id": "adventuring_extra:NoxiousSerpent",
"weight": 25
},
{
"id": "adventuring_extra:ViciousSerpent",
"weight": 75
}
],
"exit": [ "adventuring_extra:ViciousSerpent", "adventuring_extra:NoxiousSerpent", "adventuring_extra:NoxiousSerpent" ]
},
{
"monsters": [
{
"id": "adventuring_extra:TwinSeaDragonSerpent",
"weight": 100
}
],
"exit": [ "adventuring_extra:TwinSeaDragonSerpent", "adventuring_extra:TwinSeaDragonSerpent", "adventuring_extra:TwinSeaDragonSerpent" ]
}
]
}
],
"monsters": [
{
"id": "HillGiant",
"name": "HillGiant",
"media": "assets/images/Monsters/Hill_Giant.png",
"xp": 100,
"stats": [
{
"id": "adventuring:hitpoints",
"value": 50
},
{
"id": "adventuring:defence",
"value": 50
},
{
"id": "adventuring:agility",
"value": 25
},
{
"id": "adventuring:strength",
"value": 75
},
{
"id": "adventuring:ranged",
"value": 1
},
{
"id": "adventuring:magic",
"value": 1
},
{
"id": "adventuring:prayer",
"value": 1
}
],
"generator": "adventuring:slash",
"spender": "adventuring:none",
"passives": [],
"loot": [
{
"id": "adventuring:currency",
"qty": 10,
"weight": 100
},
{
"id": "adventuring:parts",
"qty": 8,
"weight": 25
}
]
},
{
"id": "TurkelGiant",
"name": "Turkul Giant",
"media": "assets/images/Monsters/Turkul_Giant.png",
"xp": 100,
"stats": [
{
"id": "adventuring:hitpoints",
"value": 55
},
{
"id": "adventuring:defence",
"value": 75
},
{
"id": "adventuring:agility",
"value": 25
},
{
"id": "adventuring:strength",
"value": 125
},
{
"id": "adventuring:ranged",
"value": 1
},
{
"id": "adventuring:magic",
"value": 1
},
{
"id": "adventuring:prayer",
"value": 10
}
],
"generator": "adventuring:slash",
"spender": "adventuring:none",
"passives": [],
"loot": [
{
"id": "adventuring:currency",
"qty": 10,
"weight": 100
},
{
"id": "adventuring:parts",
"qty": 12,
"weight": 10
}
]
},
{
"id": "GiantMoth",
"name": "Giant Moth",
"media": "assets/images/Monsters/Giant_Moth.png",
"xp": 100,
"stats": [
{
"id": "adventuring:hitpoints",
"value": 125
},
{
"id": "adventuring:defence",
"value": 75
},
{
"id": "adventuring:agility",
"value": 25
},
{
"id": "adventuring:strength",
"value": 65
},
{
"id": "adventuring:ranged",
"value": 50
},
{
"id": "adventuring:magic",
"value": 75
},
{
"id": "adventuring:prayer",
"value": 10
}
],
"generator": "adventuring:twin_strike",
"spender": "adventuring:whirlwind",
"passives": [],
"loot": [
{
"id": "adventuring:currency",
"qty": 10,
"weight": 100
},
{
"id": "adventuring:parts",
"qty": 12,
"weight": 10
}
]
},
{
"id": "GiantDragon",
"name": "Giant Dragon",
"media": "assets/images/Monsters/Giant_Dragon.png",
"xp": 150,
"stats": [
{
"id": "adventuring:hitpoints",
"value": 200
},
{
"id": "adventuring:defence",
"value": 300
},
{
"id": "adventuring:agility",
"value": 75
},
{
"id": "adventuring:strength",
"value": 100
},
{
"id": "adventuring:ranged",
"value": 100
},
{
"id": "adventuring:magic",
"value": 100
},
{
"id": "adventuring:prayer",
"value": 100
}
],
"generator": "adventuring:holy_fire",
"spender": "adventuring:pyroblast",
"passives": [ "sentinel" ],
"loot": [
{
"id": "adventuring:currency",
"qty": 100,
"weight": 100
},
{
"id": "adventuring:parts",
"qty": 12,
"weight": 25
}
]
},
{
"id": "ViciousSerpent",
"name": "Vicious Serpent",
"media": "assets/images/Monsters/Vicious_Serpent.png",
"xp": 100,
"stats": [
{
"id": "adventuring:hitpoints",
"value": 250
},
{
"id": "adventuring:defence",
"value": 250
},
{
"id": "adventuring:agility",
"value": 200
},
{
"id": "adventuring:strength",
"value": 250
},
{
"id": "adventuring:ranged",
"value": 1
},
{
"id": "adventuring:magic",
"value": 1
},
{
"id": "adventuring:prayer",
"value": 1
}
],
"generator": "adventuring:slash",
"spender": "adventuring:none",
"passives": [],
"loot": [
{
"id": "adventuring:currency",
"qty": 25,
"weight": 100
},
{
"id": "adventuring:parts",
"qty": 2,
"weight": 10
}
]
},
{
"id": "NoxiousSerpent",
"name": "Noxious Serpent",
"media": "assets/images/Monsters/Noxious_Serpent.png",
"xp": 100,
"stats": [
{
"id": "adventuring:hitpoints",
"value": 125
},
{
"id": "adventuring:defence",
"value": 125
},
{
"id": "adventuring:agility",
"value": 200
},
{
"id": "adventuring:strength",
"value": 100
},
{
"id": "adventuring:ranged",
"value": 100
},
{
"id": "adventuring:magic",
"value": 200
},
{
"id": "adventuring:prayer",
"value": 1
}
],
"generator": "adventuring:slash",
"spender": "adventuring:strangle",
"passives": [],
"loot": [
{
"id": "adventuring:currency",
"qty": 25,
"weight": 100
},
{
"id": "adventuring:parts",
"qty": 2,
"weight": 10
}
]
},
{
"id": "TwinSeaDragonSerpent",
"name": "Twin Sea Dragon Serpent",
"media": "assets/images/Monsters/Twin_Sea_Dragon.png",
"xp": 300,
"stats": [
{
"id": "adventuring:hitpoints",
"value": 300
},
{
"id": "adventuring:defence",
"value": 400
},
{
"id": "adventuring:agility",
"value": 200
},
{
"id": "adventuring:strength",
"value": 200
},
{
"id": "adventuring:ranged",
"value": 200
},
{
"id": "adventuring:magic",
"value": 200
},
{
"id": "adventuring:prayer",
"value": 1
}
],
"generator": "adventuring:electrocute",
"spender": "adventuring:strangle",
"passives": [],
"loot": [
{
"id": "adventuring:currency",
"qty": 25,
"weight": 100
},
{
"id": "adventuring:parts",
"qty": 2,
"weight": 10
}
]
},
{
"id": "Leach",
"name": "Leach",
"media": "assets/images/Monsters/Leach.png",
"xp": 50,
"stats": [
{
"id": "adventuring:hitpoints",
"value": 100
},
{
"id": "adventuring:defence",
"value": 100
},
{
"id": "adventuring:agility",
"value": 200
},
{
"id": "adventuring:strength",
"value": 200
},
{
"id": "adventuring:ranged",
"value": 200
},
{
"id": "adventuring:magic",
"value": 500
},
{
"id": "adventuring:prayer",
"value": 1
}
],
"generator": "adventuring:slash",
"spender": "adventuring:none",
"passives": [],
"loot": [
{
"id": "adventuring:currency",
"qty": 25,
"weight": 100
},
{
"id": "adventuring:parts",
"qty": 2,
"weight": 10
}
]
}
],
"baseItems": [
{
"id": "Clerics_hat",
"name": "Clerics Hat",
"media": "assets/images/Clerics_Hat.png",
"type": "adventuring:hat",
"materials": [
{
"id": "adventuring:currency",
"qty": 50
},
{
"id": "adventuring:parts",
"qty": 2
}
],
"base": [
{
"id": "adventuring:hitpoints",
"value": 2
},
{
"id": "adventuring:defence",
"value": 2
},
{
"id": "adventuring:prayer",
"value": 2
}
],
"scaling": [
{
"id": "adventuring:hitpoints",
"value": 0.5
},
{
"id": "adventuring:defence",
"value": 0.5
},
{
"id": "adventuring:prayer",
"value": 0.5
}
]
},
{
"id": "Clerics_Robe",
"name": "Clerics Robe",
"media": "assets/images/Clerics_Robes.png",
"type": "adventuring:robes",
"materials": [
{
"id": "adventuring:currency",
"qty": 50
},
{
"id": "adventuring:parts",
"qty": 2
}
],
"base": [
{
"id": "adventuring:defence",
"value": 2
},
{
"id": "adventuring:prayer",
"value": 2
}
],
"scaling": [
{
"id": "adventuring:defence",
"value": 0.5
},
{
"id": "adventuring:prayer",
"value": 0.5
}
]
},
{
"id": "Clerics_Bottoms",
"name": "Clerics Bottoms",
"media": "assets/images/Clerics_Bottoms.png",
"type": "adventuring:bottoms",
"materials": [
{
"id": "adventuring:currency",
"qty": 50
},
{
"id": "adventuring:parts",
"qty": 2
}
],
"base": [
{
"id": "adventuring:defence",
"value": 2
},
{
"id": "adventuring:prayer",
"value": 2
}
],
"scaling": [
{
"id": "adventuring:defence",
"value": 0.5
},
{
"id": "adventuring:prayer",
"value": 0.5
}
]
},
{
"id": "Clerics_Mitts",
"name": "Clerics Mitts",
"media": "assets/images/Clerics_Mitts.png",
"type": "adventuring:mitts",
"materials": [
{
"id": "adventuring:currency",
"qty": 50
},
{
"id": "adventuring:parts",
"qty": 2
}
],
"base": [
{
"id": "adventuring:defence",
"value": 2
},
{
"id": "adventuring:prayer",
"value": 2
}
],
"scaling": [
{
"id": "adventuring:defence",
"value": 0.5
},
{
"id": "adventuring:prayer",
"value": 0.5
}
]
},
{
"id": "Clerics_Slippers",
"name": "Clerics Slippers",
"media": "assets/images/Clerics_Slippers.png",
"type": "adventuring:slippers",
"materials": [
{
"id": "adventuring:currency",
"qty": 50
},
{
"id": "adventuring:parts",
"qty": 2
}
],
"base": [
{
"id": "adventuring:defence",
"value": 2
},
{
"id": "adventuring:prayer",
"value": 2
}
],
"scaling": [
{
"id": "adventuring:defence",
"value": 0.5
},
{
"id": "adventuring:prayer",
"value": 0.5
}
]
},
{
"id": "silver_topaz_ring2",
"name": "Silver Topaz Ring",
"media": "melvor:assets/media/bank/ring_silver_topaz.png",
"type": "adventuring:ring",
"materials": [
{
"id": "adventuring:currency",
"qty": 50
},
{
"id": "adventuring:parts",
"qty": 2
}
],
"base": [
{
"id": "adventuring:hitpoints",
"value": 2
},
{
"id": "adventuring:defence",
"value": 2
}
],
"scaling": [
{
"id": "adventuring:hitpoints",
"value": 0.5
},
{
"id": "adventuring:defence",
"value": 0.5
}
]
},
{
"id": "silver_topaz_ring3",
"name": "Silver Topaz Ring",
"media": "melvor:assets/media/bank/ring_silver_topaz.png",
"type": "adventuring:ring",
"materials": [
{
"id": "adventuring:currency",
"qty": 50
},
{
"id": "adventuring:parts",
"qty": 2
}
],
"base": [
{
"id": "adventuring:hitpoints",
"value": 2
},
{
"id": "adventuring:defence",
"value": 2
}
],
"scaling": [
{
"id": "adventuring:hitpoints",
"value": 0.5
},
{
"id": "adventuring:defence",
"value": 0.5
}
]
},
{
"id": "Clerics_Ring",
"name": "Clerics Ring",
"media": "assets/images/Rings/Clerics_Ring.png",
"type": "adventuring:ring",
"materials": [
{
"id": "adventuring:currency",
"qty": 250
},
{
"id": "adventuring:parts",
"qty": 2
}
],
"base": [
{
"id": "adventuring:defence",
"value": 5
},
{
"id": "adventuring:prayer",
"value": 5
}
],
"scaling": [
{
"id": "adventuring:defence",
"value": 0.5
},
{
"id": "adventuring:prayer",
"value": 0.5
}
]
},
{
"id": "Strength_Ring",
"name": "Strength Ring",
"media": "assets/images/Rings/Strength_Ring.png",
"type": "adventuring:ring",
"materials": [
{
"id": "adventuring:currency",
"qty": 250
},
{
"id": "adventuring:parts",
"qty": 2
}
],
"base": [
{
"id": "adventuring:defence",
"value": 5
},
{
"id": "adventuring:strength",
"value": 5
}
],
"scaling": [
{
"id": "adventuring:defence",
"value": 0.5
},
{
"id": "adventuring:strength",
"value": 0.5
}
]
},
{
"id": "Magic_Ring",
"name": "Magic Ring",
"media": "assets/images/Rings/Magic_Ring.png",
"type": "adventuring:ring",
"materials": [
{
"id": "adventuring:currency",
"qty": 250
},
{
"id": "adventuring:parts",
"qty": 2
}
],
"base": [
{
"id": "adventuring:defence",
"value": 5
},
{
"id": "adventuring:magic",
"value": 5
}
],
"scaling": [
{
"id": "adventuring:defence",
"value": 0.5
},
{
"id": "adventuring:magic",
"value": 0.5
}
]
},
{
"id": "silver_topaz_necklace2",
"name": "Silver Topaz Necklace",
"media": "melvor:assets/media/bank/necklace_silver_topaz.png",
"type": "adventuring:amulet",
"materials": [
{
"id": "adventuring:currency",
"qty": 50
},
{
"id": "adventuring:parts",
"qty": 2
}
],
"base": [
{
"id": "adventuring:hitpoints",
"value": 2
},
{
"id": "adventuring:defence",
"value": 2
}
],
"scaling": [
{
"id": "adventuring:hitpoints",
"value": 0.5
},
{
"id": "adventuring:defence",
"value": 0.5
}
]
},
{
"id": "silver_topaz_necklace3",
"name": "Silver Topaz Necklace",
"media": "melvor:assets/media/bank/necklace_silver_topaz.png",
"type": "adventuring:amulet",
"materials": [
{
"id": "adventuring:currency",
"qty": 50
},
{
"id": "adventuring:parts",
"qty": 2
}
],
"base": [
{
"id": "adventuring:hitpoints",
"value": 2
},
{
"id": "adventuring:defence",
"value": 2
}
],
"scaling": [
{
"id": "adventuring:hitpoints",
"value": 0.5
},
{
"id": "adventuring:defence",
"value": 0.5
}
]
},
{
"id": "Clerics_Amulet",
"name": "Clerics Amulet",
"media": "assets/images/Amulets/Clerics_Amulet.png",
"type": "adventuring:amulet",
"materials": [
{
"id": "adventuring:currency",
"qty": 500
},
{
"id": "adventuring:parts",
"qty": 2
}
],
"base": [
{
"id": "adventuring:hitpoints",
"value": 5
},
{
"id": "adventuring:prayer",
"value": 5
}
],
"scaling": [
{
"id": "adventuring:hitpoints",
"value": 0.5
},
{
"id": "adventuring:prayer",
"value": 0.8
}
]
},
{
"id": "Strength_Amulet",
"name": "Strength Amulet",
"media": "assets/images/Amulets/Strength_Amulet.png",
"type": "adventuring:amulet",
"materials": [
{
"id": "adventuring:currency",
"qty": 500
},
{
"id": "adventuring:parts",
"qty": 2
}
],
"base": [
{
"id": "adventuring:defence",
"value": 5
},
{
"id": "adventuring:strength",
"value": 5
}
],
"scaling": [
{
"id": "adventuring:defence",
"value": 0.5
},
{
"id": "adventuring:strength",
"value": 0.8
}
]
},
{
"id": "Magic_Amulet",
"name": "Magic Amulet",
"media": "assets/images/Amulets/Magic_Amulet.png",
"type": "adventuring:amulet",
"materials": [
{
"id": "adventuring:currency",
"qty": 500
},
{
"id": "adventuring:parts",
"qty": 2
}
],
"base": [
{
"id": "adventuring:defence",
"value": 5
},
{
"id": "adventuring:magic",
"value": 5
}
],
"scaling": [
{
"id": "adventuring:defence",
"value": 0.5
},
{
"id": "adventuring:magic",
"value": 0.8
}
]
},
{
"id": "basic_cape2",
"name": "Basic Cape",
"media": "melvor:assets/media/bank/knights_cape.png",
"type": "adventuring:cape",
"materials": [
{
"id": "adventuring:currency",
"qty": 50
},
{
"id": "adventuring:parts",
"qty": 2
}
],
"base": [
{
"id": "adventuring:hitpoints",
"value": 2
},
{
"id": "adventuring:defence",
"value": 2
}
],
"scaling": [
{
"id": "adventuring:hitpoints",
"value": 0.5
},
{
"id": "adventuring:defence",
"value": 0.5
}
]
},
{
"id": "basic_cape3",
"name": "Basic Cape",
"media": "melvor:assets/media/bank/knights_cape.png",
"type": "adventuring:cape",
"materials": [
{
"id": "adventuring:currency",
"qty": 50
},
{
"id": "adventuring:parts",
"qty": 2
}
],
"base": [
{
"id": "adventuring:hitpoints",
"value": 2
},
{
"id": "adventuring:defence",
"value": 2
}
],
"scaling": [
{
"id": "adventuring:hitpoints",
"value": 0.5
},
{
"id": "adventuring:defence",
"value": 0.5
}
]
},
{
"id": "Clerics_Cape",
"name": "Clerics Cape",
"media": "assets/images/Capes/Clerics_Cape.png",
"type": "adventuring:cape",
"materials": [
{
"id": "adventuring:currency",
"qty": 1000
},
{
"id": "adventuring:parts",
"qty": 10
}
],
"base": [
{
"id": "adventuring:defence",
"value": 10
},
{
"id": "adventuring:prayer",
"value": 5
}
],
"scaling": [
{
"id": "adventuring:defence",
"value": 0.5
},
{
"id": "adventuring:prayer",
"value": 0.5
}
]
},
{
"id": "Wizards_Cape",
"name": "Wizards Cape",
"media": "assets/images/Capes/Wizard_Cape.png",
"type": "adventuring:cape",
"materials": [
{
"id": "adventuring:currency",
"qty": 1000
},
{
"id": "adventuring:parts",
"qty": 10
}
],
"base": [
{
"id": "adventuring:defence",
"value": 10
},
{
"id": "adventuring:magic",
"value": 5
}
],
"scaling": [
{
"id": "adventuring:defence",
"value": 0.5
},
{
"id": "adventuring:magic",
"value": 0.5
}
]
},
{
"id": "Rogues_Cape",
"name": "Rogues Cape",
"media": "assets/images/Capes/Rogues_Cape.png",
"type": "adventuring:cape",
"materials": [
{
"id": "adventuring:currency",
"qty": 1000
},
{
"id": "adventuring:parts",
"qty": 10
}
],
"base": [
{
"id": "adventuring:defence",
"value": 10
},
{
"id": "adventuring:strength",
"value": 5
}
],
"scaling": [
{
"id": "adventuring:defence",
"value": 0.5
},
{
"id": "adventuring:strength",
"value": 0.5
}
]
},
{
"id": "Thieves_Cape",
"name": "Thieves Cape",
"media": "assets/images/Capes/Thieve_Cape.png",
"type": "adventuring:cape",
"materials": [
{
"id": "adventuring:currency",
"qty": 1000
},
{
"id": "adventuring:parts",
"qty": 10
}
],
"base": [
{
"id": "adventuring:defence",
"value": 10
},
{
"id": "adventuring:strength",
"value": 5
}
],
"scaling": [
{
"id": "adventuring:defence",
"value": 0.5
},
{
"id": "adventuring:strength",
"value": 0.5
}
]
},
{
"id": "Fighters_Cape",
"name": "Fighters Cape",
"media": "assets/images/Capes/Fighters_Cape.png",
"type": "adventuring:cape",
"materials": [
{
"id": "adventuring:currency",
"qty": 1000
},
{
"id": "adventuring:parts",
"qty": 10
}
],
"base": [
{
"id": "adventuring:defence",
"value": 10
},
{
"id": "adventuring:strength",
"value": 5
}
],
"scaling": [
{
"id": "adventuring:defence",
"value": 0.5
},
{
"id": "adventuring:strength",
"value": 0.5
}
]
}
]
}
}]
}
}
{
"namespace": "adventuring_extra",
"setup": "setup.mjs"
}
export async function setup({ gameData }) {
console.log("Registering Adventuring Extra Data");
await gameData.addPackage('data.json'); // Add skill data
console.log('Registered Adventuring Extra Data.');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment