Skip to content
black-sliver edited this page Mar 20, 2022 · 5 revisions

In the vanilla game, the most common items have an ID that is written to $7E2391 with amount in $7E2393. The script then calls common "loot" routines 0x39, 0x3a that gives the player that item. For randomization we want to convert all items to such IDs, so we extend the routines.

Vanilla item IDs

see Data Crystal RAM Map -> Prize ID list

Added item IDs

see patches/gourdomizer_drops.txt for implementation

Charms: 0x0100..0x010f:

0103: Thug's Cloak        Text: 0x0c0c    Write $2263|=0x02

Weapons: 0x0110..0x011f:

Write $2441 = lowest nibble*2
0111: bone crusher       TODO?
0112: gladiator sword    TODO (boss drop)
0113: crusader sword     TODO (boss drop)
0114: neutron blade      TODO (npc drop)
0115: spider claw        TODO (boss drop)
0116: bronze axe         TODO (boss drop)
0117: knight basher        Text: 0x1b96
0118: atom smasher         Text: 0x1b93
0119: horn spear         TODO (boss drop)
011a: bronze spear       TODO (boss drop)
011b: lance              TODO (boss drop)
011c: laser lance          Text: 0x2247
011d: bazooka (cecil’s)    Text: 0x1a46

Key Items: 0x0120..0x012f:

...
0125: gauge             Text: 0x05f1    Write $2264|=0x04
0126: diamond eye       Text: 0x04ec    Write $2264|=0x01 or 0x02 (first, second)
0127: wheel             Text: 0x05bb    Write $2264|=0x08
0128: reserved for energy core/fragment
TODO: queen's key

Trade Items: 0x0130..0x013f:

0131: amulet of annihilation    Text: 0x17c7    Add to $2517 (word)

Other Drops: 0x0140..0x014f:

0141: regenerate        Text: 0x0a6b    Write $22db|=0x80
0142: aura              Text: 0x17c4    Write $22db|=0x40

Traps: 0x0150..0x015f:

0151: trap #1           Text: TODO      TODO
...

Ammunition:

01e1: thunderball       Text: 0x2112    Add to $2345
01e2: particle bomb     Text: 0x2115    Add to $2346
01e3: cryo blast        Text: 0x2106    Add to $2347

Changing Items:

01f1: colosseum breast
    Drops Bronze Chestplate (404)
    or Stone Vest (405)
    or Centurian Cape (406)
    or Thug’s Cloak (103)
01f2: colosseum gloves
    Drops Serpent Bracelet (41c)
    or Bronze Gauntlet (41d)
    or Gloves of Ra (41e)
    or 100 Moniez (1)
01f3: colosseum helmet
    Drops Bronze Helmet (410)
    or Obsidian Helmet (411)
    or Centurian Helmet (412)
    or 100 Moniez (1)
01f4: progressive breast armor
    1. -> 0401: grass vest (npc drop!)
    2. -> 01f1: colosseum breast
    3. -> 0408: gold plated vest
    4. -> 040b: titanium vest
01f5: progressive arm protection
    1. -> 041a: mammoth guard
    2. -> 01f2: colosseum gloves
    3. -> 0423: protector ring
01f6: progressive helmet
    1. -> 040e: shell hat
    2. -> 01f3: colosseum helmet
    3. -> 0417: old reliable
TODO: verm drop

TODO

  • Most boss items (see TODO above)
  • Most NPC drops

Added alchemy item IDs

1000...1022 spells in order of vanilla, hole at laser

Note

we have not yet converted boss drops and alchemist to use the same routine as chests

Clone this wiki locally