;;; General ;;; { Green ki-hunter. Flies around, swoops at Samus if near, clips wings at low health, hops around, fires acid spit Yellow ki-hunter. More health and damage, beam and missile neutral Red ki-hunter. More health and damage, cannot be frozen, immune to missiles, power bombs and weak beams Green ki-hunter wings. Follow ki-hunter, fall off and drift to floor if ki-hunter reaches low health Yellow ki-hunter wings. Different palette Red ki-hunter wings. Different palette Enemy ID: $EABF: Green ki-hunter $EAFF: Green ki-hunter wings $EB3F: Yellow ki-hunter $EB7F: Yellow ki-hunter wings $EBBF: Red ki-hunter $EBFF: Red ki-hunter wings Bank: $A8 Enemy projectiles: $CF18: Ki hunter acid spit - left $CF26: Ki hunter acid spit - right Parameter 0: Unused Parameter 1: Ki-hunter: Wingless flag Ki-hunter wings: Health threshold for wings to fall off Parameter 2: Unused Ki-hunter and ki-hunter wing enemies must be placed together in that order, even if the ki-hunter is wingless } ;;; Behaviour ;;; { } ;;; WRAM ;;; { ; Ki-hunter { $0FA8: Function { $F268: Winged - idle flying $F3B8: Winged - swoop $F4ED: Winged - back off $F55A: Wingless - initial falling $F5E3: RTL $F58B: Wingless - prepare to hop $F5F0: Wingless - hop $F68B: Wingless - thinking $F6B3: Wingless - fire acid spit } $0FAA: Arc centre X position $0FAC: Arc centre Y position $0FB2: Arc angle $7E:7800: Arc angular velocity cap $7E:7804: Arc angular velocity $7E:7806: Arc angular subvelocity $7E:7808: Arc angular acceleration $7E:780A: Arc angular subacceleration $7E:780C: X subvelocity $7E:780E: X velocity $7E:7810: Y subvelocity $7E:7812: Y velocity $7E:7814: Idle zone top position $7E:7816: Idle zone bottom position $7E:7818: Spawn X position $7E:781A: Spawn Y position $7E:781C: Swipe trigger angle $7E:781E: Thinking timer $7E:7820: Swoop swipe flag $7E:7822: Arc X radius $7E:7824: Arc Y radius $7E:7828: Wingless flag } ; Ki-hunter wings { $0FA8: Function { $F6F3: Attached $F7CF: Falling } $0FAA: Speed table index * 100h $0FAE: Angle accumulator $0FB2: Arc angle $7E:7800: Falling function { $F7DB: Drifting left $F8AD: Drifting right } $7E:7802: Right arc centre X offset $7E:7804: Right arc centre Y offset $7E:7806: Left arc centre X offset $7E:7808: Left arc centre Y offset $7E:780A: Arc start X position $7E:780C: Arc start Y position $7E:780E: Fall start Y position $7E:7810: Fall start X position $7E:7814: Speed table index reset value } } ;;; Enemy population ;;; { ________________________________________ Enemy ID | __________________________________ X position | | _____________________________ Y position | | | _______________________ Initialisation parameter | | | | _________________ Properties. 2000h = process instructions, 800h = process whilst off-screen, 400h = intangible | | | | | ____________ Extra properties | | | | | | ______ Parameter 1 | | | | | | | _ Parameter 2 | | | | | | | | ; Debug EABF, 0100,0100, 0000, 2800,0000, 0001,0000 ; Green ki-hunter EAFF, 0100,0100, 0000, 2C00,0000, 0020,0000 ; Green ki-hunter wings EB3F, 0100,0100, 0000, 2800,0000, 0001,0000 ; Yellow ki-hunter EB7F, 0100,0100, 0000, 2C00,0000, 0020,0000 ; Yellow ki-hunter wings EBBF, 0100,0100, 0000, 2800,0000, 0001,0000 ; Red ki-hunter EBFF, 0100,0100, 0000, 2C00,0000, 0020,0000 ; Red ki-hunter wings ; Room $948C. Pre moat room EABF, 0264,0073, 0000, 2800,0000, 0000,0000 ; Green ki-hunter EAFF, 0264,0073, 0000, 2C00,0000, 0020,0000 ; Green ki-hunter wings EABF, 00A8,0087, 0000, 2800,0000, 0000,0000 ; Green ki-hunter EAFF, 00A8,0087, 0000, 2C00,0000, 0020,0000 ; Green ki-hunter wings ; Room $9D9C. Pre Spore Spawn hall EABF, 00D9,0068, 0000, 2800,0000, 003C,0000 ; Green ki-hunter EAFF, 00D9,0068, 0000, 2C00,0000, 0020,0000 ; Green ki-hunter wings EABF, 02D5,0062, 0000, 2800,0000, 003C,0000 ; Green ki-hunter EAFF, 02D5,0062, 0000, 2C00,0000, 0020,0000 ; Green ki-hunter wings EABF, 03D7,0068, 0000, 2800,0000, 003C,0000 ; Green ki-hunter EAFF, 03D7,0068, 0000, 2C00,0000, 0020,0000 ; Green ki-hunter wings ; Room $A4DA. Kraid's lair kihunter hall EABF, 0169,0070, 0000, 2800,0000, 0000,0000 ; Green ki-hunter EAFF, 0169,0070, 0000, 2C00,0000, 0020,0000 ; Green ki-hunter wings EABF, 0289,0059, 0000, 2800,0000, 0000,0000 ; Green ki-hunter EAFF, 0289,0059, 0000, 2C00,0000, 0020,0000 ; Green ki-hunter wings EABF, 01FE,0063, 0000, 2800,0000, 0000,0000 ; Green ki-hunter EAFF, 01FE,0063, 0000, 2C00,0000, 0020,0000 ; Green ki-hunter wings EABF, 0242,007A, 0000, 2800,0000, 0000,0000 ; Green ki-hunter EAFF, 0242,007A, 0000, 2C00,0000, 0020,0000 ; Green ki-hunter wings ; Room $B585. Lower Norfair south kihunter shaft EBBF, 00B9,01D6, 0000, 2800,0000, 0050,0000 ; Red ki-hunter EBFF, 00B9,01D6, 0000, 2C00,0000, 0020,0000 ; Red ki-hunter wings EBBF, 004D,023A, 0000, 2800,0000, 0050,0000 ; Red ki-hunter EBFF, 004D,023A, 0000, 2C00,0000, 0020,0000 ; Red ki-hunter wings EBBF, 0087,02F2, 0000, 2800,0000, 0050,0000 ; Red ki-hunter EBFF, 0087,02F2, 0000, 2C00,0000, 0020,0000 ; Red ki-hunter wings ; Room $B656. Lower Norfair north kihunter shaft EBBF, 0155,01F2, 0000, 2800,0000, 0384,0000 ; Red ki-hunter EBFF, 0155,01F2, 0000, 2C00,0000, 0020,0000 ; Red ki-hunter wings EBBF, 0165,0174, 0000, 2800,0000, 0384,0000 ; Red ki-hunter EBFF, 0165,0174, 0000, 2C00,0000, 0020,0000 ; Red ki-hunter wings EBBF, 014A,0108, 0000, 2800,0000, 0384,0000 ; Red ki-hunter EBFF, 014A,0108, 0000, 2C00,0000, 0020,0000 ; Red ki-hunter wings ; Room $CA52, state $CA7E. Wrecked Ship attic - main area boss is dead EB3F, 0419,00C8, 0000, 2800,0000, FFFF,0000 ; Yellow ki-hunter EB7F, 0419,00C8, 0000, 2C00,0000, 0020,0000 ; Yellow ki-hunter wings EB3F, 01FF,008E, 0000, 2800,0000, 0000,0000 ; Yellow ki-hunter EB7F, 01FF,008E, 0000, 2C00,0000, 0020,0000 ; Yellow ki-hunter wings EB3F, 05D5,0076, 0000, 2800,0000, 0000,0000 ; Yellow ki-hunter EB7F, 05D5,0076, 0000, 2C00,0000, 0020,0000 ; Yellow ki-hunter wings EB3F, 04E8,00C8, 0000, 2800,0000, FFFF,0000 ; Yellow ki-hunter EB7F, 04E8,00C8, 0000, 2C00,0000, 0020,0000 ; Yellow ki-hunter wings } ;;; Enemy header ;;; { ______________________________________ Green ki-hunter | _______________________________ Green ki-hunter wings | | ________________________ Yellow ki-hunter | | | _________________ Yellow ki-hunter wings | | | | __________ Red ki-hunter | | | | | ___ Red ki-hunter wings | | | | | | 1000 0200 1000 0200 1000 0200 ; 0: Tile data size E99A E99A E9BA E9BA E9DA E9DA ; 2: Palette 003C 003C 0168 0168 0708 0708 ; 4: Health 0014 0014 003C 003C 00C8 00C8 ; 6: Damage 0008 000A 0008 000A 0008 000A ; 8: Width 0012 000A 0012 000A 0012 000A ; Ah: Height A8 A8 A8 A8 A8 A8 ; Ch: Bank 00 00 00 00 00 00 ; Dh: Hurt AI time 0066 0066 0066 0066 0066 0066 ; Eh: Cry 0000 0000 0000 0000 0000 0000 ; 10h: Boss ID F188 F214 F188 F214 F188 F214 ; 12h: Initialisation AI 0002 0001 0002 0001 0002 0001 ; 14h: Number of parts F25C F262 F25C F262 F25C F262 ; 18h: Main AI 800F 800F 800F 800F 800F 800F ; 1Ah: Grapple AI 804C 804C 804C 804C 804C 804C ; 1Ch: Hurt AI 8041 8041 8041 8041 8041 8041 ; 1Eh: Frozen AI 0000 0000 0000 0000 0000 0000 ; 20h: Time is frozen AI 0004 0004 0004 0004 0004 0004 ; 22h: Death animation 0000 804C 0000 804C 0000 804C ; 28h: Power bomb reaction 0000 0000 0000 0000 0000 0000 ; 2Ah: Sidehopper variant index 8023 804C 8023 804C 8023 804C ; 30h: Enemy touch F701 804C F701 804C F701 804C ; 32h: Enemy shot B1EC00 B1EC00 B1EC00 B1EC00 B1EC00 B1EC00 ; 36h: Tile data 05 05 05 05 05 05 ; 39h: Layer F272 F272 F278 F278 F27E F27E ; 3Ah: Drop chances ($B4) ED66 ED66 ED7C ED7C ED92 ED92 ; 3Ch: Vulnerabilities ($B4) DEA1 0000 E2C9 0000 E2D7 0000 ; 3Eh: Enemy name ($B4) } ;;; Enemy vulnerabilities ;;; { ; Vulnerability format: ; v = fddddddd ; If v = FFh: ; Freeze, no damage ; Else: ; d: Damage multiplier * 2 ; f: Does not freeze _______ Green ki-hunter | ____ Yellow ki-hunter | | _ Red ki-hunter | | | 01 02 00 ; Power 01 02 00 ; Wave 01 02 81 ; Ice 01 02 81 ; Ice + wave 01 02 81 ; Spazer 01 02 82 ; Spazer + wave 01 02 82 ; Spazer + ice 01 02 82 ; Spazer + ice + wave 01 02 82 ; Plasma 01 02 82 ; Plasma + wave 01 02 82 ; Plasma + ice 01 02 82 ; Plasma + ice + wave 04 02 00 ; Missile 04 02 02 ; Super missile 00 00 00 ; Bomb 02 02 00 ; Power bomb 02 02 02 ; Speed booster 02 02 02 ; Shinespark 02 02 04 ; Screw attack 02 02 82 ; Charged beam 02 02 00 ; Pseudo screw attack 02 02 02 ; Unused } ;;; Enemy drop chances ;;; { _______ Green ki-hunter | ____ Yellow ki-hunter | | _ Red ki-hunter | | | 32 37 23 ; 19.6% 21.6% 13.7% Small health 1E 50 78 ; 11.8% 31.4% 47.1% Big health 50 0A 0A ; 31.4% 3.9% 3.9% Missiles 4B 28 14 ; 29.4% 15.7% 7.8% Nothing 0A 3C 3C ; 3.9% 23.5% 23.5% Super missiles 0A 0A 0A ; 3.9% 3.9% 3.9% Power bombs }