Ensure you have NodeJS v18 (needed for structuredClone).
npm i
npm run load:content
npm start
You must have debug mode enabled for any of these to work.
window.gainItem(itemName, quantity)
- gain an item in X quantity. For items, quantity should be 1. Resources can be set to any value.window.gainEveryResource(quantity)
- gain every resource with X quantity.window.gainEveryItem(quantity)
- gain every item with X quantity.window.discover(itemOrResourceName)
- discover an item or resource. Can make things show up quicker on the exchange, or anything else that requires discovery.window.fightThreat(threatName)
- begin combat against a specific threat.window.applyCombatEffectToPlayer(effect)
- add a specifically named effect to the player in combat.window.gainLevel(tradeskill, levels)
- gain a number of levels for a tradeskill (levels can be negative).window.setCombatHealth(value)
- set the player's health in combat to the specified value.window.setCombatEnergy(value)
- set the player's energy in combat to the specified value.window.discoverAll()
- discover all items. Not reversible. Lags a lot.
npm run load:content
npx @ionic/cli g page pages/[page-name]
npx @ionic/cli g service services/[service-name]
- Create the 5 files in any category in
stores/
- Add the store to
stores/index.ts
- Add the migrations file to
stores/migrations.ts
- Make the sound effect (BFXR)
- Compress the sound effect here (if it doesn't compress, use the original)
- Place it in
src/assets/sfx
- Find the SVG here.
- Copy the SVG locally to
src/assets/icon
. - Remove the SVGs
fill
attribute. - Names of svgs are generally as follows object, a dash, and then a property of the image if relevant. Inverses of this rule are frequent and should be fixed over time.
See CONTENT.md.