Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.
C calculatorcalculator-gamescasiochesscrossy-roaddrive-madfx-cg50gamesgeometry-dashgraphing-calculatorndlessnumworksnumworks-appsnumworks-calculatornumworks-gamenumworks-gamestetristi-84-plus-ceti-nspire
Hollow Knight: Fungal Wastes: Mantis Village's warriors and youths, the Mantis Lords, the Ogres' notch
Mason363297f04e716ca
diff --git a/games/hollowknight/src/data.bin b/games/hollowknight/src/data.binindex 1558f18a..c66a1e91 100644Binary files a/games/hollowknight/src/data.bin and b/games/hollowknight/src/data.bin differdiff --git a/games/hollowknight/src/data.h b/games/hollowknight/src/data.hindex 173b538c..ecf6f8a3 100644--- a/games/hollowknight/src/data.h+++ b/games/hollowknight/src/data.h@@ -942,6 +942,15 @@#define VMEV_UPDATE_SHAMAN {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 79, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}#define VMEV_SHOP_REGION_INACTIVE {255, 255, 67, 82, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 85, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}#define VMEV_SHOP_REGION_ACTIVE {255, 255, 61, 77, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 75, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}+#define VMEV_MLORD_START_MAIN {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}+#define VMEV_MLORD_START_SUB {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}+#define VMEV_MANTIS_DEFEATED {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}+#define VMEV_MLORD_BOW {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}+#define VMEV_MANTIS_DEFEAT {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}+#define VMEV_MLORD_CAGE_UP {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}+#define VMEV_MLORD_FLOOR_EXTEND {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}+#define VMEV_MLORD_GATE_OPEN {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}+#define VMEV_RETURN {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}#define VMSTR_NPC_TITLE 14#define VMSTR_VISITED 691#define VMSTR_DISPLAY_RIGHT 692diff --git a/games/hollowknight/src/data_fw.bin b/games/hollowknight/src/data_fw.binindex 9605050b..e80a1343 100644Binary files a/games/hollowknight/src/data_fw.bin and b/games/hollowknight/src/data_fw.bin differdiff --git a/games/hollowknight/src/data_fw.h b/games/hollowknight/src/data_fw.hindex b6376589..fb659bd6 100644--- a/games/hollowknight/src/data_fw.h+++ b/games/hollowknight/src/data_fw.h@@ -133,528 +133,581 @@#define CLIP_KNIGHT_SLASHEFFECTALT_M 92#define CLIP_KNIGHT_UPSLASHEFFECT_M 93#define CLIP_KNIGHT_DOWNSLASHEFFECT_M 94-#define CLIP_GEOROCK_IDLE_1 95-#define CLIP_GEOROCK_GLEAM_1 96-#define CLIP_GEOROCK_BROKEN_1 97-#define CLIP_GEOROCK_IDLE_2 98-#define CLIP_GEOROCK_GLEAM_2 99-#define CLIP_GEOROCK_BROKEN_2 100-#define CLIP_CHEST_IDLE 101-#define CLIP_CHEST_OPEN 102-#define CLIP_CHEST_BURST 103-#define CLIP_CHEST_OPENED 104-#define CLIP_HUD_HEALTH_EMPTY 105-#define CLIP_HUD_HEALTH_IDLE 106-#define CLIP_HUD_HEALTH_BREAK 107-#define CLIP_HUD_HEALTH_REFILL 108-#define CLIP_HUD_HEALTH_APPEAR 109-#define CLIP_HUD_BLUE_APPEAR 110-#define CLIP_HUD_BLUE_IDLE 111-#define CLIP_HUD_BLUE_BREAK 112-#define CLIP_HUD_BLUE_BREAK_FAST 113-#define CLIP_HUD_HUD_FRAME 114-#define CLIP_HUD_HUD_FRAME_IDLE 115-#define CLIP_HUD_HUD_FRAME_CRACKAPPEAR 116-#define CLIP_HUD_HUD_FRAME_CRACKED 117-#define CLIP_HUD_COIN_APPEAR 118-#define CLIP_HUD_COIN_IDLE 119-#define CLIP_HUD_COIN_GET 120-#define CLIP_HUD_SOUL_BURST 121-#define CLIP_LIQUID_FILL 122-#define CLIP_LIQUID_IDLE 123-#define CLIP_LIQUID_SHRINK 124-#define CLIP_LIQUID_DRAIN 125-#define CLIP_GEO_SMALL_IDLE 126-#define CLIP_GEO_SMALL_AIR 127-#define CLIP_GEO_MED_IDLE 128-#define CLIP_GEO_MED_AIR 129-#define CLIP_GEO_LARGE_IDLE 130-#define CLIP_GEO_LARGE_AIR 131-#define CLIP_SHOPUI_SHOP_MENU_TOP_UP 132-#define CLIP_SHOPUI_SHOP_MENU_TOP_DOWN 133-#define CLIP_SHOPUI_SHOP_MENU_BOTTOM_UP 134-#define CLIP_SHOPUI_SHOP_MENU_BOTTOM_DOWN 135-#define CLIP_SHOPUI_SHOP_FIGUREHEAD_SLY_UP 136-#define CLIP_SHOPUI_SHOP_FIGUREHEAD_SLY_DOWN 137-#define CLIP_SHOPUI_SHOP_FIGUREHEAD_MAPPERWIFE_UP 138-#define CLIP_SHOPUI_SHOP_FIGUREHEAD_MAPPERWIFE_DOWN 139-#define CLIP_SHOPUI_SHOP_FIGUREHEAD_SLUG_UP 140-#define CLIP_SHOPUI_SHOP_FIGUREHEAD_SLUG_DOWN 141-#define CLIP_HEARTUI_FLEUR_APPEAR 142-#define CLIP_HEARTUI_FLEUR_DISAPPEAR 143-#define CLIP_HEARTUI_GET_0 144-#define CLIP_HEARTUI_GET_1 145-#define CLIP_HEARTUI_GET_2 146-#define CLIP_HEARTUI_GET_3 147-#define CLIP_HEARTUI_GET_4 148-#define CLIP_HEARTUI_GOT_1 149-#define CLIP_HEARTUI_GOT_2 150-#define CLIP_HEARTUI_GOT_3 151-#define CLIP_HEARTUI_FUSE 152-#define CLIP_HEARTUI_HEAD_MOVE 153-#define CLIP_VESSELUI_GET_0 154-#define CLIP_VESSELUI_GET_1 155-#define CLIP_VESSELUI_GET_2 156-#define CLIP_VESSELUI_GET_3 157-#define CLIP_VESSELUI_GOT_1 158-#define CLIP_VESSELUI_GOT_2 159-#define CLIP_STAGUI_STAG_MAP_SELECTION_CURSOR 160-#define CLIP_STAGUI_STAG_BORDER_TOP_UP 161-#define CLIP_STAGUI_STAG_BORDER_TOP_DOWN 162-#define CLIP_STAGUI_STAG_BORDER_BOTTOM_UP 163-#define CLIP_STAGUI_STAG_BORDER_BOTTOM_DOWN 164-#define CLIP_MAPUI_IDLE 165-#define CLIP_MAPUI_WALK 166-#define CLIP_JOURNALMSG_MAP_WRITING 167-#define CLIP_JOURNALMSG_MAP_COMPLETE 168-#define CLIP_GEOBUG_LAMP_BUG_IDLE 169-#define CLIP_DIALOGUE_ARROW_UP 170-#define CLIP_DIALOGUE_ARROW_DOWN 171-#define CLIP_DIALOGUE_STOP_UP 172-#define CLIP_DIALOGUE_STOP_DOWN 173-#define CLIP_DIALOGUE_FLEUR_TOP_UP 174-#define CLIP_DIALOGUE_FLEUR_TOP_DOWN 175-#define CLIP_DIALOGUE_FLEUR_BOT_UP 176-#define CLIP_DIALOGUE_FLEUR_BOT_DOWN 177-#define CLIP_DIALOGUE_DREAM_UP 178-#define CLIP_DIALOGUE_DREAM_DOWN 179-#define CLIP_PROMPT_BLANK 180-#define CLIP_PROMPT_DOWN 181-#define CLIP_PROMPT_ENTER_DOWN 182-#define CLIP_PROMPT_ENTER_IDLE 183-#define CLIP_PROMPT_ENTER_UP 184-#define CLIP_PROMPT_IDLE 185-#define CLIP_PROMPT_LISTEN_DOWN 186-#define CLIP_PROMPT_LISTEN_IDLE 187-#define CLIP_PROMPT_LISTEN_UP 188-#define CLIP_PROMPT_UP 189-#define CLIP_SHADE_IDLE 190-#define CLIP_SHADE_STARTLE 191-#define CLIP_SHADE_FLY 192-#define CLIP_SHADE_TURNTOFLY 193-#define CLIP_SHADE_TURNTOIDLE 194-#define CLIP_SHADE_SLASH_ANTIC 195-#define CLIP_SHADE_SLASH 196-#define CLIP_SHADE_SLASH_CD 197-#define CLIP_SHADE_SLASH_EFFECT 198-#define CLIP_SHADE_CAST_ANTIC 199-#define CLIP_SHADE_CAST_CHARGE 200-#define CLIP_SHADE_CAST 201-#define CLIP_SHADE_RETREAT_START 202-#define CLIP_SHADE_RETREAT_END 203-#define CLIP_SHADE_DEATH_START 204-#define CLIP_SHADE_DEATH 205-#define CLIP_SHADE_DEPART 206-#define CLIP_SHADE_APPEAR 207-#define CLIP_SHADE_FIREBALL 208-#define CLIP_SHADE_FIREBALL_END 209-#define CLIP_SHADE_CAST_RING 210-#define CLIP_SHADE_DEATH_GLOW 211-#define CLIP_CRAWLER_WALK 212-#define CLIP_CRAWLER_TURN 213-#define CLIP_CRAWLER_IDLE 214-#define CLIP_CRAWLER_DEATH_AIR 215-#define CLIP_CRAWLER_DEATH_LAND 216-#define CLIP_BUZZER_CHASE 217-#define CLIP_BUZZER_IDLE 218-#define CLIP_BUZZER_STARTLE 219-#define CLIP_BUZZER_DEATH_AIR 220-#define CLIP_BUZZER_DEATH_LAND 221-#define CLIP_BUZZER_FLY 222-#define CLIP_BUZZER_TURNTOFLY 223-#define CLIP_BUZZER_TURNTOIDLE 224-#define CLIP_TIKTIK_DEATH_AIR 225-#define CLIP_TIKTIK_DEATH_LAND 226-#define CLIP_TIKTIK_STUN 227-#define CLIP_TIKTIK_WALK 228-#define CLIP_GRUZZER_DEATH_AIR 229-#define CLIP_GRUZZER_DEATH_LAND 230-#define CLIP_GRUZZER_FLY 231-#define CLIP_ASPID_DEATH_AIR 232-#define CLIP_ASPID_FIRE_LONG 233-#define CLIP_ASPID_FLY 234-#define CLIP_ASPID_TURNTOFLY 235-#define CLIP_BALDUR_DEATH_AIR 236-#define CLIP_BALDUR_DEATH_LAND 237-#define CLIP_BALDUR_IDLE 238-#define CLIP_BALDUR_ROLL 239-#define CLIP_BALDUR_START 240-#define CLIP_BALDUR_STOP 241-#define CLIP_ELDERBALDUR_CLOSE1 242-#define CLIP_ELDERBALDUR_CLOSE2 243-#define CLIP_ELDERBALDUR_CLOSED 244-#define CLIP_ELDERBALDUR_DEATH 245-#define CLIP_ELDERBALDUR_DEATH_STUN 246-#define CLIP_ELDERBALDUR_HIT 247-#define CLIP_ELDERBALDUR_IDLE 248-#define CLIP_ELDERBALDUR_OPEN 249-#define CLIP_ELDERBALDUR_SHOOT_ANTIC 250-#define CLIP_ELDERBALDUR_SHOOT_CD 251-#define CLIP_HUSK_ATTACK_ANTICIPATE 252-#define CLIP_HUSK_ATTACK_COOLDOWN 253-#define CLIP_HUSK_ATTACK_LUNGE 254-#define CLIP_HUSK_DEATH_AIR 255-#define CLIP_HUSK_DEATH_LAND 256-#define CLIP_HUSK_IDLE 257-#define CLIP_HUSK_TURN 258-#define CLIP_HUSK_WALK 259-#define CLIP_BARGER_ATTACK_ANTICIPATE 260-#define CLIP_BARGER_ATTACK_COOLDOWN 261-#define CLIP_BARGER_ATTACK_LUNGE 262-#define CLIP_BARGER_DEATH_AIR 263-#define CLIP_BARGER_DEATH_LAND 264-#define CLIP_BARGER_IDLE 265-#define CLIP_BARGER_TURN 266-#define CLIP_BARGER_WALK 267-#define CLIP_HORNHEAD_ATTACK_ANTICIPATE 268-#define CLIP_HORNHEAD_ATTACK_COOLDOWN 269-#define CLIP_HORNHEAD_ATTACK_LUNGE 270-#define CLIP_HORNHEAD_DEATH_AIR 271-#define CLIP_HORNHEAD_DEATH_LAND 272-#define CLIP_HORNHEAD_IDLE 273-#define CLIP_HORNHEAD_TURN 274-#define CLIP_HORNHEAD_WALK 275-#define CLIP_MOSSRUNNER_ATTACK_ANTICIPATE 276-#define CLIP_MOSSRUNNER_ATTACK_COOLDOWN 277-#define CLIP_MOSSRUNNER_ATTACK_LUNGE 278-#define CLIP_MOSSRUNNER_DEATH_AIR 279-#define CLIP_MOSSRUNNER_DEATH_LAND 280-#define CLIP_MOSSRUNNER_IDLE 281-#define CLIP_MOSSRUNNER_TURN 282-#define CLIP_MOSSRUNNER_WALK 283-#define CLIP_LEAPER_ATTACK 284-#define CLIP_LEAPER_DEATH_AIR 285-#define CLIP_LEAPER_DEATH_LAND 286-#define CLIP_LEAPER_IDLE 287-#define CLIP_LEAPER_LAND 288-#define CLIP_LEAPER_TURN 289-#define CLIP_LEAPER_WALK 290-#define CLIP_GUARD_ANTICIPATE 291-#define CLIP_GUARD_ATTACK2 292-#define CLIP_GUARD_DEATH_AIR 293-#define CLIP_GUARD_DEATH_LAND 294-#define CLIP_GUARD_DORMANT 295-#define CLIP_GUARD_IDLE 296-#define CLIP_GUARD_RUN 297-#define CLIP_GUARD_STARTLE 298-#define CLIP_GUARD_STOMP_ANTIC 299-#define CLIP_GUARD_STOMP_JUMP 300-#define CLIP_GUARD_STOMP_LAND 301-#define CLIP_GUARD_STOP_RUN 302-#define CLIP_GUARD_STOP_WALK 303-#define CLIP_GUARD_SWIPE 304-#define CLIP_GUARD_TURN 305-#define CLIP_GUARD_WAKE 306-#define CLIP_GUARD_WALK 307-#define CLIP_FK_ATTACK 308-#define CLIP_FK_ATTACK_ANTIC 309-#define CLIP_FK_ATTACK_RECOVER 310-#define CLIP_FK_BLANK 311-#define CLIP_FK_BODY 312-#define CLIP_FK_DEATH_FALL 313-#define CLIP_FK_DEATH_HEAD_1 314-#define CLIP_FK_DEATH_HEAD_2 315-#define CLIP_FK_DEATH_LAND 316-#define CLIP_FK_DEATH_SPAZ 317-#define CLIP_FK_IDLE 318-#define CLIP_FK_JUMP 319-#define CLIP_FK_JUMP_ANTIC 320-#define CLIP_FK_JUMP_ATTACK_HIT_1 321-#define CLIP_FK_JUMP_ATTACK_HIT_2 322-#define CLIP_FK_JUMP_ATTACK_HIT_3 323-#define CLIP_FK_JUMP_ATTACK_UP 324-#define CLIP_FK_LAND 325-#define CLIP_FK_RAGE 326-#define CLIP_FK_RUN 327-#define CLIP_FK_RUN_ANTIC 328-#define CLIP_FK_STUN_HIT 329-#define CLIP_FK_STUN_OPEN 330-#define CLIP_FK_STUN_OPENED 331-#define CLIP_FK_STUN_RECOVER 332-#define CLIP_FK_STUN_ROLL 333-#define CLIP_FK_STUN_ROLL_END 334-#define CLIP_FK_TURN 335-#define CLIP_FKHEAD_DEATH_LAND 336-#define CLIP_FKHEAD_HEAD_HIT 337-#define CLIP_FKHEAD_HEAD_IDLE 338-#define CLIP_FKHEAD_HEAD_SPAZ 339-#define CLIP_HATCHER_DEATH_AIR 340-#define CLIP_HATCHER_DEATH_LAND 341-#define CLIP_HATCHER_FIRE 342-#define CLIP_HATCHER_FLY 343-#define CLIP_HATCHLING_FLY 344-#define CLIP_SLUG_BOUNCE 345-#define CLIP_SLUG_DEATH_AIR 346-#define CLIP_SLUG_DEATH_LAND 347-#define CLIP_SLUG_IDLE_TODOWN 348-#define CLIP_SLUG_IDLE_TOUP 349-#define CLIP_SLUG_IDLE_UP 350-#define CLIP_SLUG_RUN 351-#define CLIP_SLUG_STARTLE 352-#define CLIP_GFLY_BURST 353-#define CLIP_GFLY_CHARGE 354-#define CLIP_GFLY_CHARGE_ANTIC 355-#define CLIP_GFLY_CHARGE_RECOVER 356-#define CLIP_GFLY_DEATH 357-#define CLIP_GFLY_FALL 358-#define CLIP_GFLY_FLY 359-#define CLIP_GFLY_GURGLE_LOOP 360-#define CLIP_GFLY_GURGLE_ONCE 361-#define CLIP_GFLY_SLAM_DOWN 362-#define CLIP_GFLY_SLAM_END 363-#define CLIP_GFLY_SLAM_UP 364-#define CLIP_GFLY_SLEEP 365-#define CLIP_GFLY_STOP 366-#define CLIP_GFLY_WAKE 367-#define CLIP_GFLY_WIGGLE 368-#define CLIP_MOSSWALKER_APPEAR 369-#define CLIP_MOSSWALKER_BURY 370-#define CLIP_MOSSWALKER_DEATH_AIR 371-#define CLIP_MOSSWALKER_DEATH_LAND 372-#define CLIP_MOSSWALKER_SHAKE 373-#define CLIP_MOSSWALKER_TURN 374-#define CLIP_MOSSWALKER_WALK 375-#define CLIP_PIGEON_FLY 376-#define CLIP_PIGEON_IDLE_01 377-#define CLIP_PIGEON_IDLE_02 378-#define CLIP_PIGEON_IDLE_03 379-#define CLIP_PLANTTRAP_DEATH 380-#define CLIP_PLANTTRAP_IDLE 381-#define CLIP_PLANTTRAP_RETRACT 382-#define CLIP_PLANTTRAP_SNAP 383-#define CLIP_PLANTTRAP_SNAP_READY 384-#define CLIP_SHAKER_ATTACK 385-#define CLIP_SHAKER_DEATH_AIR 386-#define CLIP_SHAKER_DEATH_LAND 387-#define CLIP_SHAKER_IDLE 388-#define CLIP_SHAKER_TURN 389-#define CLIP_SHAKER_WALK 390-#define CLIP_MOSQUITO_ATTACK 391-#define CLIP_MOSQUITO_ATTACK_ANTIC 392-#define CLIP_MOSQUITO_DEATH_AIR 393-#define CLIP_MOSQUITO_DEATH_LAND 394-#define CLIP_MOSQUITO_IDLE 395-#define CLIP_MOSQUITO_STARTLE 396-#define CLIP_MOSQUITO_TURNTOIDLE 397-#define CLIP_FATFLY_ATTACK 398-#define CLIP_FATFLY_DEATH_AIR 399-#define CLIP_FATFLY_DEATH_LAND 400-#define CLIP_FATFLY_FLY 401-#define CLIP_MOSSCHARGER_APPEAR 402-#define CLIP_MOSSCHARGER_CHARGE 403-#define CLIP_MOSSCHARGER_DEATH_AIR 404-#define CLIP_MOSSCHARGER_DEATH_LAND 405-#define CLIP_MOSSCHARGER_DISAPPEAR 406-#define CLIP_MOSSCHARGER_ESCAPE 407-#define CLIP_MOSSCHARGER_GET_UP 408-#define CLIP_MOSSCHARGER_STUN 409-#define CLIP_MOSSCHARGER_TURNRUN 410-#define CLIP_MOSSKNIGHT_DEATH_AIR 411-#define CLIP_MOSSKNIGHT_DEATH_LAND 412-#define CLIP_MOSSKNIGHT_DORMANT_1 413-#define CLIP_MOSSKNIGHT_DORMANT_2 414-#define CLIP_MOSSKNIGHT_EVADE 415-#define CLIP_MOSSKNIGHT_IDLE 416-#define CLIP_MOSSKNIGHT_SHAKE 417-#define CLIP_MOSSKNIGHT_SHIELD_FRONT 418-#define CLIP_MOSSKNIGHT_SHIELD_FRONT_BUMP 419-#define CLIP_MOSSKNIGHT_SHIELD_TOP 420-#define CLIP_MOSSKNIGHT_SHIELD_TOP_BUMP 421-#define CLIP_MOSSKNIGHT_SHOOT 422-#define CLIP_MOSSKNIGHT_SHOOT_END 423-#define CLIP_MOSSKNIGHT_SLASH 424-#define CLIP_MOSSKNIGHT_SLASH_2 425-#define CLIP_MOSSKNIGHT_SLASH_2_EFFECT 426-#define CLIP_MOSSKNIGHT_SLASH_EFFECT 427-#define CLIP_MOSSKNIGHT_SLASH_EFFECT_QUICK 428-#define CLIP_MOSSKNIGHT_SLASH_END 429-#define CLIP_MOSSKNIGHT_SLASH_QUICK 430-#define CLIP_MOSSKNIGHT_TURN 431-#define CLIP_MOSSKNIGHT_UNSHIELD_FRONT 432-#define CLIP_MOSSKNIGHT_UNSHIELD_TOP 433-#define CLIP_MOSSKNIGHT_WAKE 434-#define CLIP_MOSSKNIGHT_WALK 435-#define CLIP_HORNET_A_DASH 436-#define CLIP_HORNET_A_DASH_ANTIC 437-#define CLIP_HORNET_AIR_DASH_EFFECT 438-#define CLIP_HORNET_DEATH_AIR 439-#define CLIP_HORNET_EVADE 440-#define CLIP_HORNET_EVADE_ANTIC 441-#define CLIP_HORNET_FALL 442-#define CLIP_HORNET_FLASH 443-#define CLIP_HORNET_FLOURISH 444-#define CLIP_HORNET_G_DASH 445-#define CLIP_HORNET_G_DASH_ANTIC 446-#define CLIP_HORNET_G_DASH_EFFECT 447-#define CLIP_HORNET_G_DASH_RECOVER1 448-#define CLIP_HORNET_G_DASH_RECOVER2 449-#define CLIP_HORNET_HARD_LAND 450-#define CLIP_HORNET_IDLE 451-#define CLIP_HORNET_JUMP 452-#define CLIP_HORNET_JUMP_ANTIC 453-#define CLIP_HORNET_LAND 454-#define CLIP_HORNET_NEEDLE 455-#define CLIP_HORNET_NEEDLE_THREAD 456-#define CLIP_HORNET_RUN 457-#define CLIP_HORNET_SPHERE_ANTIC_A 458-#define CLIP_HORNET_SPHERE_ANTIC_G 459-#define CLIP_HORNET_SPHERE_ATTACK 460-#define CLIP_HORNET_SPHERE_BALL 461-#define CLIP_HORNET_SPHERE_RECOVER_A 462-#define CLIP_HORNET_SPHERE_RECOVER_G 463-#define CLIP_HORNET_STUN 464-#define CLIP_HORNET_STUN_AIR 465-#define CLIP_HORNET_THROW 466-#define CLIP_HORNET_THROW_ANTIC 467-#define CLIP_HORNET_THROW_EFFECT 468-#define CLIP_HORNET_THROW_RECOVER 469-#define CLIP_HORNET_WALL_IMPACT 470-#define CLIP_HORNET_WOUNDED 471-#define CLIP_MENDER_DEATH_AIR 472-#define CLIP_MENDER_DEATH_LAND 473-#define CLIP_MENDER_FLY 474-#define CLIP_MENDER_IDLE 475-#define CLIP_MENDER_STARTLE 476-#define CLIP_FUNGLING_DEATH 477-#define CLIP_FUNGLING_IDLE 478-#define CLIP_FUNGLING_TURNTOIDLE 479-#define CLIP_AMBLOOM_DEATH_AIR 480-#define CLIP_AMBLOOM_DEATH_LAND 481-#define CLIP_AMBLOOM_TURN 482-#define CLIP_AMBLOOM_WALK 483-#define CLIP_FUNGOON_DEATH 484-#define CLIP_FUNGOON_EFFECT 485-#define CLIP_FUNGOON_FLOAT 486-#define CLIP_FUNGOON_SPIT 487-#define CLIP_FUNGOON_SPIT_ANTIC 488-#define CLIP_FUNGOON_SPIT_RECOVER 489-#define CLIP_SHRUMELING_DEATH_AIR 490-#define CLIP_SHRUMELING_DEATH_LAND 491-#define CLIP_SHRUMELING_IDLE 492-#define CLIP_SHRUMELING_MINI_REST_1 493-#define CLIP_SHRUMELING_MINI_REST_2 494-#define CLIP_SHRUMELING_MINI_REST_3 495-#define CLIP_SHRUMELING_MINI_REST_TO_WAKE_1 496-#define CLIP_SHRUMELING_MINI_REST_TO_WAKE_2 497-#define CLIP_SHRUMELING_MINI_REST_TO_WAKE_3 498-#define CLIP_SHRUMELING_RUN 499-#define CLIP_SHRUMELING_STARTLE 500-#define CLIP_FUNGUSHUSK_ATTACK 501-#define CLIP_FUNGUSHUSK_DEATH_AIR 502-#define CLIP_FUNGUSHUSK_DEATH_LAND 503-#define CLIP_FUNGUSHUSK_IDLE 504-#define CLIP_FUNGUSHUSK_TURN 505-#define CLIP_FUNGUSHUSK_WALK 506-#define CLIP_OGRE_ANTIC 507-#define CLIP_OGRE_BOUNCE 508-#define CLIP_OGRE_DEATH_AIR 509-#define CLIP_OGRE_RUN 510-#define CLIP_OGRE_SLEEP 511-#define CLIP_OGRE_SMASH_LOOP 512-#define CLIP_OGRE_SMASH_TO_RUN 513-#define CLIP_OGRE_SPIT 514-#define CLIP_OGRE_TURN 515-#define CLIP_OGRE_WAKE 516-#define CLIP_SPORG_ATTACK 517-#define CLIP_SPORG_DEATH 518-#define CLIP_SPORG_EXPLODE 519-#define CLIP_SPORG_IDLE_1 520-#define CLIP_SPORG_IDLE_2 521-#define CLIP_SPORG_SLEEP 522-#define CLIP_SPORG_SLEEP_TO_IDLE 523-#define CLIP_BGATE_BG_OPENED 524-#define CLIP_BGATE_BG_CLOSE_1 525-#define CLIP_BGATE_BG_CLOSE_2 526-#define CLIP_BGATE_BG_OPEN 527-#define CLIP_BGATE_BG_CLOSED 528-#define CLIP_BGATE_BONE_GATE_OPENED 529-#define CLIP_BGATE_BONE_GATE_CLOSE 530-#define CLIP_BGATE_BONE_GATE_CLOSED 531-#define CLIP_BGATE_BONE_GATE_OPEN 532-#define CLIP_COCOON_COCOON_IDLE 533-#define CLIP_COCOON_COCOON_SWEAT 534-#define CLIP_COCOON_SCUTTLER_LAND 535-#define CLIP_COCOON_SCUTTLER_RUN 536-#define CLIP_FX_IMPACT_LINES 537-#define CLIP_FX_SPLAT 538-#define CLIP_FX_SPLAT2 539-#define CLIP_FX_SWORD 540-#define CLIP_FIREBALL_BLAST 541-#define CLIP_FIREBALL_BALL 542-#define CLIP_FIREBALL_BALL_END 543-#define CLIP_FIREBALL_FIREBALL_WALL_IMPACT 544-#define CLIP_DRIP_IDLE 545-#define CLIP_DRIP_DRIP 546-#define CLIP_DRIP_FALL 547-#define CLIP_DRIP_IMPACT 548-#define CLIP_HORNETCS_IDLE 549-#define CLIP_HORNETCS_JUMP_FULL 550-#define CLIP_HORNETCS_THROW_SIDE_START 551-#define CLIP_HORNETCS_THROW_SIDE 552-#define CLIP_HORNETCS_HARPOON_SIDE 553-#define CLIP_HORNETCS_THREAD_1 554-#define CLIP_HORNETCS_POINT 555-#define CLIP_HORNETCS_EVADE_ANTIC 556-#define CLIP_HORNETCS_EVADE 557-#define CLIP_HORNETCS_SOFT_LAND 558-#define CLIP_HORNETCS_TURN 559-#define CLIP_HORNETCS_RUN 560-#define CLIP_BULLET_IDLE 561-#define CLIP_BULLET_IMPACT 562-#define CLIP_BULLET_SHOCKWAVE_SPURT 563-#define CLIP_GLOB_IDLE 564-#define CLIP_GLOB_LAND 565-#define CLIP_PROP0_DOOR_CLOSED 566-#define CLIP_PROP0_DOOR_OPEN_1 567-#define CLIP_PROP0_DOOR_OPEN_2 568-#define CLIP_PROP0_FLOOR_IDLE 569-#define CLIP_PROP0_GATE_CLOSE 570-#define CLIP_PROP0_GATE_IDLE 571-#define CLIP_PROP0_IDLE 572-#define CLIP_PROP0_LEVER_ACTIVATED 573-#define CLIP_PROP0_LEVER_HIT 574-#define CLIP_PROP0_LEVER_IDLE 575-#define CLIP_PROP0_LEVER_UNHIT 576-#define CLIP_VM0_ARRIVE 577-#define CLIP_VM0_ARRIVE_SMOKE 578-#define CLIP_VM0_IDLE 579-#define CLIP_VM1_BELL_IDLE 580-#define CLIP_VM1_BELL_RING_R 581-#define CLIP_VM1_BELL_STAND 582-#define CLIP_VM1_BELL_STAND_APPEAR 583-#define CLIP_VM1_BOX_DISAPPEAR 584-#define CLIP_VM1_BOX_IDLE 585-#define CLIP_VM1_FRONT 586-#define CLIP_VM1_GRATE_DISAPPEAR 587-#define CLIP_VM1_GRATE_IDLE 588-#define CLIP_VM2_IDLE 589-#define CLIP_VM2_TALK 590-#define CLIP_VM2_TALK_END 591-#define CLIP_VM4_IDLE 592-#define CLIP_VM4_TALK_L 593-#define CLIP_VM4_TALK_L_END 594-#define CLIP_VM4_TALK_R 595-#define CLIP_VM4_TALK_R_END 596-#define CLIP_VM6_CRY 597-#define CLIP_VM6_CRY_TURN 598-#define CLIP_VM6_FREED 599-#define CLIP_VM6_IDLE 600-#define CLIP_VM7_STAND 601-#define CLIP_VM7_TURN_L 602-#define CLIP_VM7_TURN_R 603-#define CLIP_VM8_IDLE 604-#define CLIP_VM8_QUICK_ANTIC 605-#define CLIP_VM8_SLASH_RECOVER 606-#define CLIP_VM8_TURN 607-#define CLIP_VM8_WALK 608-#define CLIP_ANIM0_GROUND_PLINK_0 609-#define SPRITE_HERO_LIGHT 2631-#define SPRITE_DIALOGUE_BACKBOARD 2632-#define SPRITE_PROMPT_SHADOW 2633-#define SPRITE_CORPSE_NAIL 2634-#define SPRITE_FK_BARREL 2635-#define SPRITE_FK_STAFF 2636-#define SPRITE_DIGIT0 2939+#define CLIP_KNIGHT_CHALLENGE_START 95+#define CLIP_KNIGHT_CHALLENGE_END 96+#define CLIP_GEOROCK_IDLE_1 97+#define CLIP_GEOROCK_GLEAM_1 98+#define CLIP_GEOROCK_BROKEN_1 99+#define CLIP_GEOROCK_IDLE_2 100+#define CLIP_GEOROCK_GLEAM_2 101+#define CLIP_GEOROCK_BROKEN_2 102+#define CLIP_CHEST_IDLE 103+#define CLIP_CHEST_OPEN 104+#define CLIP_CHEST_BURST 105+#define CLIP_CHEST_OPENED 106+#define CLIP_HUD_HEALTH_EMPTY 107+#define CLIP_HUD_HEALTH_IDLE 108+#define CLIP_HUD_HEALTH_BREAK 109+#define CLIP_HUD_HEALTH_REFILL 110+#define CLIP_HUD_HEALTH_APPEAR 111+#define CLIP_HUD_BLUE_APPEAR 112+#define CLIP_HUD_BLUE_IDLE 113+#define CLIP_HUD_BLUE_BREAK 114+#define CLIP_HUD_BLUE_BREAK_FAST 115+#define CLIP_HUD_HUD_FRAME 116+#define CLIP_HUD_HUD_FRAME_IDLE 117+#define CLIP_HUD_HUD_FRAME_CRACKAPPEAR 118+#define CLIP_HUD_HUD_FRAME_CRACKED 119+#define CLIP_HUD_COIN_APPEAR 120+#define CLIP_HUD_COIN_IDLE 121+#define CLIP_HUD_COIN_GET 122+#define CLIP_HUD_SOUL_BURST 123+#define CLIP_LIQUID_FILL 124+#define CLIP_LIQUID_IDLE 125+#define CLIP_LIQUID_SHRINK 126+#define CLIP_LIQUID_DRAIN 127+#define CLIP_GEO_SMALL_IDLE 128+#define CLIP_GEO_SMALL_AIR 129+#define CLIP_GEO_MED_IDLE 130+#define CLIP_GEO_MED_AIR 131+#define CLIP_GEO_LARGE_IDLE 132+#define CLIP_GEO_LARGE_AIR 133+#define CLIP_SHOPUI_SHOP_MENU_TOP_UP 134+#define CLIP_SHOPUI_SHOP_MENU_TOP_DOWN 135+#define CLIP_SHOPUI_SHOP_MENU_BOTTOM_UP 136+#define CLIP_SHOPUI_SHOP_MENU_BOTTOM_DOWN 137+#define CLIP_SHOPUI_SHOP_FIGUREHEAD_SLY_UP 138+#define CLIP_SHOPUI_SHOP_FIGUREHEAD_SLY_DOWN 139+#define CLIP_SHOPUI_SHOP_FIGUREHEAD_MAPPERWIFE_UP 140+#define CLIP_SHOPUI_SHOP_FIGUREHEAD_MAPPERWIFE_DOWN 141+#define CLIP_SHOPUI_SHOP_FIGUREHEAD_SLUG_UP 142+#define CLIP_SHOPUI_SHOP_FIGUREHEAD_SLUG_DOWN 143+#define CLIP_HEARTUI_FLEUR_APPEAR 144+#define CLIP_HEARTUI_FLEUR_DISAPPEAR 145+#define CLIP_HEARTUI_GET_0 146+#define CLIP_HEARTUI_GET_1 147+#define CLIP_HEARTUI_GET_2 148+#define CLIP_HEARTUI_GET_3 149+#define CLIP_HEARTUI_GET_4 150+#define CLIP_HEARTUI_GOT_1 151+#define CLIP_HEARTUI_GOT_2 152+#define CLIP_HEARTUI_GOT_3 153+#define CLIP_HEARTUI_FUSE 154+#define CLIP_HEARTUI_HEAD_MOVE 155+#define CLIP_VESSELUI_GET_0 156+#define CLIP_VESSELUI_GET_1 157+#define CLIP_VESSELUI_GET_2 158+#define CLIP_VESSELUI_GET_3 159+#define CLIP_VESSELUI_GOT_1 160+#define CLIP_VESSELUI_GOT_2 161+#define CLIP_STAGUI_STAG_MAP_SELECTION_CURSOR 162+#define CLIP_STAGUI_STAG_BORDER_TOP_UP 163+#define CLIP_STAGUI_STAG_BORDER_TOP_DOWN 164+#define CLIP_STAGUI_STAG_BORDER_BOTTOM_UP 165+#define CLIP_STAGUI_STAG_BORDER_BOTTOM_DOWN 166+#define CLIP_MAPUI_IDLE 167+#define CLIP_MAPUI_WALK 168+#define CLIP_JOURNALMSG_MAP_WRITING 169+#define CLIP_JOURNALMSG_MAP_COMPLETE 170+#define CLIP_GEOBUG_LAMP_BUG_IDLE 171+#define CLIP_DIALOGUE_ARROW_UP 172+#define CLIP_DIALOGUE_ARROW_DOWN 173+#define CLIP_DIALOGUE_STOP_UP 174+#define CLIP_DIALOGUE_STOP_DOWN 175+#define CLIP_DIALOGUE_FLEUR_TOP_UP 176+#define CLIP_DIALOGUE_FLEUR_TOP_DOWN 177+#define CLIP_DIALOGUE_FLEUR_BOT_UP 178+#define CLIP_DIALOGUE_FLEUR_BOT_DOWN 179+#define CLIP_DIALOGUE_DREAM_UP 180+#define CLIP_DIALOGUE_DREAM_DOWN 181+#define CLIP_PROMPT_BLANK 182+#define CLIP_PROMPT_DOWN 183+#define CLIP_PROMPT_ENTER_DOWN 184+#define CLIP_PROMPT_ENTER_IDLE 185+#define CLIP_PROMPT_ENTER_UP 186+#define CLIP_PROMPT_IDLE 187+#define CLIP_PROMPT_LISTEN_DOWN 188+#define CLIP_PROMPT_LISTEN_IDLE 189+#define CLIP_PROMPT_LISTEN_UP 190+#define CLIP_PROMPT_UP 191+#define CLIP_SHADE_IDLE 192+#define CLIP_SHADE_STARTLE 193+#define CLIP_SHADE_FLY 194+#define CLIP_SHADE_TURNTOFLY 195+#define CLIP_SHADE_TURNTOIDLE 196+#define CLIP_SHADE_SLASH_ANTIC 197+#define CLIP_SHADE_SLASH 198+#define CLIP_SHADE_SLASH_CD 199+#define CLIP_SHADE_SLASH_EFFECT 200+#define CLIP_SHADE_CAST_ANTIC 201+#define CLIP_SHADE_CAST_CHARGE 202+#define CLIP_SHADE_CAST 203+#define CLIP_SHADE_RETREAT_START 204+#define CLIP_SHADE_RETREAT_END 205+#define CLIP_SHADE_DEATH_START 206+#define CLIP_SHADE_DEATH 207+#define CLIP_SHADE_DEPART 208+#define CLIP_SHADE_APPEAR 209+#define CLIP_SHADE_FIREBALL 210+#define CLIP_SHADE_FIREBALL_END 211+#define CLIP_SHADE_CAST_RING 212+#define CLIP_SHADE_DEATH_GLOW 213+#define CLIP_CRAWLER_WALK 214+#define CLIP_CRAWLER_TURN 215+#define CLIP_CRAWLER_IDLE 216+#define CLIP_CRAWLER_DEATH_AIR 217+#define CLIP_CRAWLER_DEATH_LAND 218+#define CLIP_BUZZER_CHASE 219+#define CLIP_BUZZER_IDLE 220+#define CLIP_BUZZER_STARTLE 221+#define CLIP_BUZZER_DEATH_AIR 222+#define CLIP_BUZZER_DEATH_LAND 223+#define CLIP_BUZZER_FLY 224+#define CLIP_BUZZER_TURNTOFLY 225+#define CLIP_BUZZER_TURNTOIDLE 226+#define CLIP_TIKTIK_DEATH_AIR 227+#define CLIP_TIKTIK_DEATH_LAND 228+#define CLIP_TIKTIK_STUN 229+#define CLIP_TIKTIK_WALK 230+#define CLIP_GRUZZER_DEATH_AIR 231+#define CLIP_GRUZZER_DEATH_LAND 232+#define CLIP_GRUZZER_FLY 233+#define CLIP_ASPID_DEATH_AIR 234+#define CLIP_ASPID_FIRE_LONG 235+#define CLIP_ASPID_FLY 236+#define CLIP_ASPID_TURNTOFLY 237+#define CLIP_BALDUR_DEATH_AIR 238+#define CLIP_BALDUR_DEATH_LAND 239+#define CLIP_BALDUR_IDLE 240+#define CLIP_BALDUR_ROLL 241+#define CLIP_BALDUR_START 242+#define CLIP_BALDUR_STOP 243+#define CLIP_ELDERBALDUR_CLOSE1 244+#define CLIP_ELDERBALDUR_CLOSE2 245+#define CLIP_ELDERBALDUR_CLOSED 246+#define CLIP_ELDERBALDUR_DEATH 247+#define CLIP_ELDERBALDUR_DEATH_STUN 248+#define CLIP_ELDERBALDUR_HIT 249+#define CLIP_ELDERBALDUR_IDLE 250+#define CLIP_ELDERBALDUR_OPEN 251+#define CLIP_ELDERBALDUR_SHOOT_ANTIC 252+#define CLIP_ELDERBALDUR_SHOOT_CD 253+#define CLIP_HUSK_ATTACK_ANTICIPATE 254+#define CLIP_HUSK_ATTACK_COOLDOWN 255+#define CLIP_HUSK_ATTACK_LUNGE 256+#define CLIP_HUSK_DEATH_AIR 257+#define CLIP_HUSK_DEATH_LAND 258+#define CLIP_HUSK_IDLE 259+#define CLIP_HUSK_TURN 260+#define CLIP_HUSK_WALK 261+#define CLIP_BARGER_ATTACK_ANTICIPATE 262+#define CLIP_BARGER_ATTACK_COOLDOWN 263+#define CLIP_BARGER_ATTACK_LUNGE 264+#define CLIP_BARGER_DEATH_AIR 265+#define CLIP_BARGER_DEATH_LAND 266+#define CLIP_BARGER_IDLE 267+#define CLIP_BARGER_TURN 268+#define CLIP_BARGER_WALK 269+#define CLIP_HORNHEAD_ATTACK_ANTICIPATE 270+#define CLIP_HORNHEAD_ATTACK_COOLDOWN 271+#define CLIP_HORNHEAD_ATTACK_LUNGE 272+#define CLIP_HORNHEAD_DEATH_AIR 273+#define CLIP_HORNHEAD_DEATH_LAND 274+#define CLIP_HORNHEAD_IDLE 275+#define CLIP_HORNHEAD_TURN 276+#define CLIP_HORNHEAD_WALK 277+#define CLIP_MOSSRUNNER_ATTACK_ANTICIPATE 278+#define CLIP_MOSSRUNNER_ATTACK_COOLDOWN 279+#define CLIP_MOSSRUNNER_ATTACK_LUNGE 280+#define CLIP_MOSSRUNNER_DEATH_AIR 281+#define CLIP_MOSSRUNNER_DEATH_LAND 282+#define CLIP_MOSSRUNNER_IDLE 283+#define CLIP_MOSSRUNNER_TURN 284+#define CLIP_MOSSRUNNER_WALK 285+#define CLIP_LEAPER_ATTACK 286+#define CLIP_LEAPER_DEATH_AIR 287+#define CLIP_LEAPER_DEATH_LAND 288+#define CLIP_LEAPER_IDLE 289+#define CLIP_LEAPER_LAND 290+#define CLIP_LEAPER_TURN 291+#define CLIP_LEAPER_WALK 292+#define CLIP_GUARD_ANTICIPATE 293+#define CLIP_GUARD_ATTACK2 294+#define CLIP_GUARD_DEATH_AIR 295+#define CLIP_GUARD_DEATH_LAND 296+#define CLIP_GUARD_DORMANT 297+#define CLIP_GUARD_IDLE 298+#define CLIP_GUARD_RUN 299+#define CLIP_GUARD_STARTLE 300+#define CLIP_GUARD_STOMP_ANTIC 301+#define CLIP_GUARD_STOMP_JUMP 302+#define CLIP_GUARD_STOMP_LAND 303+#define CLIP_GUARD_STOP_RUN 304+#define CLIP_GUARD_STOP_WALK 305+#define CLIP_GUARD_SWIPE 306+#define CLIP_GUARD_TURN 307+#define CLIP_GUARD_WAKE 308+#define CLIP_GUARD_WALK 309+#define CLIP_FK_ATTACK 310+#define CLIP_FK_ATTACK_ANTIC 311+#define CLIP_FK_ATTACK_RECOVER 312+#define CLIP_FK_BLANK 313+#define CLIP_FK_BODY 314+#define CLIP_FK_DEATH_FALL 315+#define CLIP_FK_DEATH_HEAD_1 316+#define CLIP_FK_DEATH_HEAD_2 317+#define CLIP_FK_DEATH_LAND 318+#define CLIP_FK_DEATH_SPAZ 319+#define CLIP_FK_IDLE 320+#define CLIP_FK_JUMP 321+#define CLIP_FK_JUMP_ANTIC 322+#define CLIP_FK_JUMP_ATTACK_HIT_1 323+#define CLIP_FK_JUMP_ATTACK_HIT_2 324+#define CLIP_FK_JUMP_ATTACK_HIT_3 325+#define CLIP_FK_JUMP_ATTACK_UP 326+#define CLIP_FK_LAND 327+#define CLIP_FK_RAGE 328+#define CLIP_FK_RUN 329+#define CLIP_FK_RUN_ANTIC 330+#define CLIP_FK_STUN_HIT 331+#define CLIP_FK_STUN_OPEN 332+#define CLIP_FK_STUN_OPENED 333+#define CLIP_FK_STUN_RECOVER 334+#define CLIP_FK_STUN_ROLL 335+#define CLIP_FK_STUN_ROLL_END 336+#define CLIP_FK_TURN 337+#define CLIP_FKHEAD_DEATH_LAND 338+#define CLIP_FKHEAD_HEAD_HIT 339+#define CLIP_FKHEAD_HEAD_IDLE 340+#define CLIP_FKHEAD_HEAD_SPAZ 341+#define CLIP_HATCHER_DEATH_AIR 342+#define CLIP_HATCHER_DEATH_LAND 343+#define CLIP_HATCHER_FIRE 344+#define CLIP_HATCHER_FLY 345+#define CLIP_HATCHLING_FLY 346+#define CLIP_SLUG_BOUNCE 347+#define CLIP_SLUG_DEATH_AIR 348+#define CLIP_SLUG_DEATH_LAND 349+#define CLIP_SLUG_IDLE_TODOWN 350+#define CLIP_SLUG_IDLE_TOUP 351+#define CLIP_SLUG_IDLE_UP 352+#define CLIP_SLUG_RUN 353+#define CLIP_SLUG_STARTLE 354+#define CLIP_GFLY_BURST 355+#define CLIP_GFLY_CHARGE 356+#define CLIP_GFLY_CHARGE_ANTIC 357+#define CLIP_GFLY_CHARGE_RECOVER 358+#define CLIP_GFLY_DEATH 359+#define CLIP_GFLY_FALL 360+#define CLIP_GFLY_FLY 361+#define CLIP_GFLY_GURGLE_LOOP 362+#define CLIP_GFLY_GURGLE_ONCE 363+#define CLIP_GFLY_SLAM_DOWN 364+#define CLIP_GFLY_SLAM_END 365+#define CLIP_GFLY_SLAM_UP 366+#define CLIP_GFLY_SLEEP 367+#define CLIP_GFLY_STOP 368+#define CLIP_GFLY_WAKE 369+#define CLIP_GFLY_WIGGLE 370+#define CLIP_MOSSWALKER_APPEAR 371+#define CLIP_MOSSWALKER_BURY 372+#define CLIP_MOSSWALKER_DEATH_AIR 373+#define CLIP_MOSSWALKER_DEATH_LAND 374+#define CLIP_MOSSWALKER_SHAKE 375+#define CLIP_MOSSWALKER_TURN 376+#define CLIP_MOSSWALKER_WALK 377+#define CLIP_PIGEON_FLY 378+#define CLIP_PIGEON_IDLE_01 379+#define CLIP_PIGEON_IDLE_02 380+#define CLIP_PIGEON_IDLE_03 381+#define CLIP_PLANTTRAP_DEATH 382+#define CLIP_PLANTTRAP_IDLE 383+#define CLIP_PLANTTRAP_RETRACT 384+#define CLIP_PLANTTRAP_SNAP 385+#define CLIP_PLANTTRAP_SNAP_READY 386+#define CLIP_SHAKER_ATTACK 387+#define CLIP_SHAKER_DEATH_AIR 388+#define CLIP_SHAKER_DEATH_LAND 389+#define CLIP_SHAKER_IDLE 390+#define CLIP_SHAKER_TURN 391+#define CLIP_SHAKER_WALK 392+#define CLIP_MOSQUITO_ATTACK 393+#define CLIP_MOSQUITO_ATTACK_ANTIC 394+#define CLIP_MOSQUITO_DEATH_AIR 395+#define CLIP_MOSQUITO_DEATH_LAND 396+#define CLIP_MOSQUITO_IDLE 397+#define CLIP_MOSQUITO_STARTLE 398+#define CLIP_MOSQUITO_TURNTOIDLE 399+#define CLIP_FATFLY_ATTACK 400+#define CLIP_FATFLY_DEATH_AIR 401+#define CLIP_FATFLY_DEATH_LAND 402+#define CLIP_FATFLY_FLY 403+#define CLIP_MOSSCHARGER_APPEAR 404+#define CLIP_MOSSCHARGER_CHARGE 405+#define CLIP_MOSSCHARGER_DEATH_AIR 406+#define CLIP_MOSSCHARGER_DEATH_LAND 407+#define CLIP_MOSSCHARGER_DISAPPEAR 408+#define CLIP_MOSSCHARGER_ESCAPE 409+#define CLIP_MOSSCHARGER_GET_UP 410+#define CLIP_MOSSCHARGER_STUN 411+#define CLIP_MOSSCHARGER_TURNRUN 412+#define CLIP_MOSSKNIGHT_DEATH_AIR 413+#define CLIP_MOSSKNIGHT_DEATH_LAND 414+#define CLIP_MOSSKNIGHT_DORMANT_1 415+#define CLIP_MOSSKNIGHT_DORMANT_2 416+#define CLIP_MOSSKNIGHT_EVADE 417+#define CLIP_MOSSKNIGHT_IDLE 418+#define CLIP_MOSSKNIGHT_SHAKE 419+#define CLIP_MOSSKNIGHT_SHIELD_FRONT 420+#define CLIP_MOSSKNIGHT_SHIELD_FRONT_BUMP 421+#define CLIP_MOSSKNIGHT_SHIELD_TOP 422+#define CLIP_MOSSKNIGHT_SHIELD_TOP_BUMP 423+#define CLIP_MOSSKNIGHT_SHOOT 424+#define CLIP_MOSSKNIGHT_SHOOT_END 425+#define CLIP_MOSSKNIGHT_SLASH 426+#define CLIP_MOSSKNIGHT_SLASH_2 427+#define CLIP_MOSSKNIGHT_SLASH_2_EFFECT 428+#define CLIP_MOSSKNIGHT_SLASH_EFFECT 429+#define CLIP_MOSSKNIGHT_SLASH_EFFECT_QUICK 430+#define CLIP_MOSSKNIGHT_SLASH_END 431+#define CLIP_MOSSKNIGHT_SLASH_QUICK 432+#define CLIP_MOSSKNIGHT_TURN 433+#define CLIP_MOSSKNIGHT_UNSHIELD_FRONT 434+#define CLIP_MOSSKNIGHT_UNSHIELD_TOP 435+#define CLIP_MOSSKNIGHT_WAKE 436+#define CLIP_MOSSKNIGHT_WALK 437+#define CLIP_HORNET_A_DASH 438+#define CLIP_HORNET_A_DASH_ANTIC 439+#define CLIP_HORNET_AIR_DASH_EFFECT 440+#define CLIP_HORNET_DEATH_AIR 441+#define CLIP_HORNET_EVADE 442+#define CLIP_HORNET_EVADE_ANTIC 443+#define CLIP_HORNET_FALL 444+#define CLIP_HORNET_FLASH 445+#define CLIP_HORNET_FLOURISH 446+#define CLIP_HORNET_G_DASH 447+#define CLIP_HORNET_G_DASH_ANTIC 448+#define CLIP_HORNET_G_DASH_EFFECT 449+#define CLIP_HORNET_G_DASH_RECOVER1 450+#define CLIP_HORNET_G_DASH_RECOVER2 451+#define CLIP_HORNET_HARD_LAND 452+#define CLIP_HORNET_IDLE 453+#define CLIP_HORNET_JUMP 454+#define CLIP_HORNET_JUMP_ANTIC 455+#define CLIP_HORNET_LAND 456+#define CLIP_HORNET_NEEDLE 457+#define CLIP_HORNET_NEEDLE_THREAD 458+#define CLIP_HORNET_RUN 459+#define CLIP_HORNET_SPHERE_ANTIC_A 460+#define CLIP_HORNET_SPHERE_ANTIC_G 461+#define CLIP_HORNET_SPHERE_ATTACK 462+#define CLIP_HORNET_SPHERE_BALL 463+#define CLIP_HORNET_SPHERE_RECOVER_A 464+#define CLIP_HORNET_SPHERE_RECOVER_G 465+#define CLIP_HORNET_STUN 466+#define CLIP_HORNET_STUN_AIR 467+#define CLIP_HORNET_THROW 468+#define CLIP_HORNET_THROW_ANTIC 469+#define CLIP_HORNET_THROW_EFFECT 470+#define CLIP_HORNET_THROW_RECOVER 471+#define CLIP_HORNET_WALL_IMPACT 472+#define CLIP_HORNET_WOUNDED 473+#define CLIP_MENDER_DEATH_AIR 474+#define CLIP_MENDER_DEATH_LAND 475+#define CLIP_MENDER_FLY 476+#define CLIP_MENDER_IDLE 477+#define CLIP_MENDER_STARTLE 478+#define CLIP_FUNGLING_DEATH 479+#define CLIP_FUNGLING_IDLE 480+#define CLIP_FUNGLING_TURNTOIDLE 481+#define CLIP_AMBLOOM_DEATH_AIR 482+#define CLIP_AMBLOOM_DEATH_LAND 483+#define CLIP_AMBLOOM_TURN 484+#define CLIP_AMBLOOM_WALK 485+#define CLIP_FUNGOON_DEATH 486+#define CLIP_FUNGOON_EFFECT 487+#define CLIP_FUNGOON_FLOAT 488+#define CLIP_FUNGOON_SPIT 489+#define CLIP_FUNGOON_SPIT_ANTIC 490+#define CLIP_FUNGOON_SPIT_RECOVER 491+#define CLIP_SHRUMELING_DEATH_AIR 492+#define CLIP_SHRUMELING_DEATH_LAND 493+#define CLIP_SHRUMELING_IDLE 494+#define CLIP_SHRUMELING_MINI_REST_1 495+#define CLIP_SHRUMELING_MINI_REST_2 496+#define CLIP_SHRUMELING_MINI_REST_3 497+#define CLIP_SHRUMELING_MINI_REST_TO_WAKE_1 498+#define CLIP_SHRUMELING_MINI_REST_TO_WAKE_2 499+#define CLIP_SHRUMELING_MINI_REST_TO_WAKE_3 500+#define CLIP_SHRUMELING_RUN 501+#define CLIP_SHRUMELING_STARTLE 502+#define CLIP_FUNGUSHUSK_ATTACK 503+#define CLIP_FUNGUSHUSK_DEATH_AIR 504+#define CLIP_FUNGUSHUSK_DEATH_LAND 505+#define CLIP_FUNGUSHUSK_IDLE 506+#define CLIP_FUNGUSHUSK_TURN 507+#define CLIP_FUNGUSHUSK_WALK 508+#define CLIP_OGRE_ANTIC 509+#define CLIP_OGRE_BOUNCE 510+#define CLIP_OGRE_DEATH_AIR 511+#define CLIP_OGRE_RUN 512+#define CLIP_OGRE_SLEEP 513+#define CLIP_OGRE_SMASH_LOOP 514+#define CLIP_OGRE_SMASH_TO_RUN 515+#define CLIP_OGRE_SPIT 516+#define CLIP_OGRE_TURN 517+#define CLIP_OGRE_WAKE 518+#define CLIP_SPORG_ATTACK 519+#define CLIP_SPORG_DEATH 520+#define CLIP_SPORG_EXPLODE 521+#define CLIP_SPORG_IDLE_1 522+#define CLIP_SPORG_IDLE_2 523+#define CLIP_SPORG_SLEEP 524+#define CLIP_SPORG_SLEEP_TO_IDLE 525+#define CLIP_MANTIS_ATTACK_1 526+#define CLIP_MANTIS_ATTACK_2 527+#define CLIP_MANTIS_ATTACK_ANTIC 528+#define CLIP_MANTIS_ATTACK_RECOVER 529+#define CLIP_MANTIS_BOW 530+#define CLIP_MANTIS_BOW_END 531+#define CLIP_MANTIS_DEATH_AIR 532+#define CLIP_MANTIS_IDLE 533+#define CLIP_MANTIS_QUICK_ANTIC 534+#define CLIP_MANTIS_SLASH_RECOVER 535+#define CLIP_MANTIS_TURN 536+#define CLIP_MANTIS_TURN_TO_BOW 537+#define CLIP_MANTIS_UP_ATTACK_ANTIC 538+#define CLIP_MANTIS_UP_ATTACK_RECOVER 539+#define CLIP_MANTIS_UP_ATTACK_SLASH 540+#define CLIP_MANTIS_WALK 541+#define CLIP_MANTIS_WALK_B 542+#define CLIP_MANTISFLYER_ATTACK 543+#define CLIP_MANTISFLYER_ATTACK_ANTIC 544+#define CLIP_MANTISFLYER_ATTACK_RECOVER 545+#define CLIP_MANTISFLYER_FLY 546+#define CLIP_MANTISFLYER_REST 547+#define CLIP_MANTISFLYER_STARTLE 548+#define CLIP_MANTISFLYER_TURN_TO_FLY 549+#define CLIP_MANTISLORD_DASH_ANTIC 550+#define CLIP_MANTISLORD_DASH_ARRIVE 551+#define CLIP_MANTISLORD_DASH_ATTACK 552+#define CLIP_MANTISLORD_DASH_LEAVE 553+#define CLIP_MANTISLORD_DASH_RECOVER 554+#define CLIP_MANTISLORD_DEATH_AIR 555+#define CLIP_MANTISLORD_DEATH_LAND 556+#define CLIP_MANTISLORD_DEATH_NEW_1 557+#define CLIP_MANTISLORD_DEATH_NEW_2 558+#define CLIP_MANTISLORD_DSTAB_ARRIVE 559+#define CLIP_MANTISLORD_DSTAB_ATTACK 560+#define CLIP_MANTISLORD_DSTAB_LAND 561+#define CLIP_MANTISLORD_DSTAB_LEAVE 562+#define CLIP_MANTISLORD_MANTIS_AIR_PROJECTILE 563+#define CLIP_MANTISLORD_THRONE_BOW 564+#define CLIP_MANTISLORD_THRONE_GESTURE_1 565+#define CLIP_MANTISLORD_THRONE_GESTURE_2 566+#define CLIP_MANTISLORD_THRONE_IDLE 567+#define CLIP_MANTISLORD_THRONE_LEAVE 568+#define CLIP_MANTISLORD_THRONE_LOOK_DOWN 569+#define CLIP_MANTISLORD_THRONE_LOOK_UP 570+#define CLIP_MANTISLORD_THRONE_STAND 571+#define CLIP_MANTISLORD_THRONE_WOUNDED 572+#define CLIP_MANTISLORD_THROW 573+#define CLIP_MANTISLORD_THROW_ANTIC 574+#define CLIP_MANTISLORD_WALL_ARRIVE 575+#define CLIP_MANTISLORD_WALL_LEAVE_1 576+#define CLIP_MANTISLORD_WALL_LEAVE_2 577+#define CLIP_MANTISLORD_WALL_READY 578+#define CLIP_BGATE_BG_OPENED 579+#define CLIP_BGATE_BG_CLOSE_1 580+#define CLIP_BGATE_BG_CLOSE_2 581+#define CLIP_BGATE_BG_OPEN 582+#define CLIP_BGATE_BG_CLOSED 583+#define CLIP_BGATE_BONE_GATE_OPENED 584+#define CLIP_BGATE_BONE_GATE_CLOSE 585+#define CLIP_BGATE_BONE_GATE_CLOSED 586+#define CLIP_BGATE_BONE_GATE_OPEN 587+#define CLIP_COCOON_COCOON_IDLE 588+#define CLIP_COCOON_COCOON_SWEAT 589+#define CLIP_COCOON_SCUTTLER_LAND 590+#define CLIP_COCOON_SCUTTLER_RUN 591+#define CLIP_FX_IMPACT_LINES 592+#define CLIP_FX_SPLAT 593+#define CLIP_FX_SPLAT2 594+#define CLIP_FX_SWORD 595+#define CLIP_FIREBALL_BLAST 596+#define CLIP_FIREBALL_BALL 597+#define CLIP_FIREBALL_BALL_END 598+#define CLIP_FIREBALL_FIREBALL_WALL_IMPACT 599+#define CLIP_DRIP_IDLE 600+#define CLIP_DRIP_DRIP 601+#define CLIP_DRIP_FALL 602+#define CLIP_DRIP_IMPACT 603+#define CLIP_HORNETCS_IDLE 604+#define CLIP_HORNETCS_JUMP_FULL 605+#define CLIP_HORNETCS_THROW_SIDE_START 606+#define CLIP_HORNETCS_THROW_SIDE 607+#define CLIP_HORNETCS_HARPOON_SIDE 608+#define CLIP_HORNETCS_THREAD_1 609+#define CLIP_HORNETCS_POINT 610+#define CLIP_HORNETCS_EVADE_ANTIC 611+#define CLIP_HORNETCS_EVADE 612+#define CLIP_HORNETCS_SOFT_LAND 613+#define CLIP_HORNETCS_TURN 614+#define CLIP_HORNETCS_RUN 615+#define CLIP_BULLET_IDLE 616+#define CLIP_BULLET_IMPACT 617+#define CLIP_BULLET_SHOCKWAVE_SPURT 618+#define CLIP_GLOB_IDLE 619+#define CLIP_GLOB_LAND 620+#define CLIP_PROP0_DOOR_CLOSED 621+#define CLIP_PROP0_DOOR_OPEN_1 622+#define CLIP_PROP0_DOOR_OPEN_2 623+#define CLIP_PROP0_FLOOR_EXTEND 624+#define CLIP_PROP0_FLOOR_IDLE 625+#define CLIP_PROP0_FLOOR_RETRACT 626+#define CLIP_PROP0_GATE_CLOSE 627+#define CLIP_PROP0_GATE_IDLE 628+#define CLIP_PROP0_GATE_OPEN 629+#define CLIP_PROP0_IDLE 630+#define CLIP_PROP0_LEVER_ACTIVATED 631+#define CLIP_PROP0_LEVER_HIT 632+#define CLIP_PROP0_LEVER_IDLE 633+#define CLIP_PROP0_LEVER_UNHIT 634+#define CLIP_VM0_ARRIVE 635+#define CLIP_VM0_ARRIVE_SMOKE 636+#define CLIP_VM0_IDLE 637+#define CLIP_VM1_BELL_IDLE 638+#define CLIP_VM1_BELL_RING_R 639+#define CLIP_VM1_BELL_STAND 640+#define CLIP_VM1_BELL_STAND_APPEAR 641+#define CLIP_VM1_BOX_DISAPPEAR 642+#define CLIP_VM1_BOX_IDLE 643+#define CLIP_VM1_FRONT 644+#define CLIP_VM1_GRATE_DISAPPEAR 645+#define CLIP_VM1_GRATE_IDLE 646+#define CLIP_VM2_IDLE 647+#define CLIP_VM2_TALK 648+#define CLIP_VM2_TALK_END 649+#define CLIP_VM4_IDLE 650+#define CLIP_VM4_TALK_L 651+#define CLIP_VM4_TALK_L_END 652+#define CLIP_VM4_TALK_R 653+#define CLIP_VM4_TALK_R_END 654+#define CLIP_VM6_CRY 655+#define CLIP_VM6_CRY_TURN 656+#define CLIP_VM6_FREED 657+#define CLIP_VM6_IDLE 658+#define CLIP_VM7_STAND 659+#define CLIP_VM7_TURN_L 660+#define CLIP_VM7_TURN_R 661+#define CLIP_ANIM0_GROUND_PLINK_0 662+#define SPRITE_HERO_LIGHT 2803+#define SPRITE_DIALOGUE_BACKBOARD 2804+#define SPRITE_PROMPT_SHADOW 2805+#define SPRITE_CORPSE_NAIL 2806+#define SPRITE_FK_BARREL 2807+#define SPRITE_FK_STAFF 2808+#define SPRITE_DIGIT0 3130#define STYLE_DIALOGUE 0#define STYLE_PROMPT 1#define STYLE_TITLE_L 2@@ -710,8 +763,11 @@#define EK_FUNGUSHUSK 35#define EK_OGRE 36#define EK_SPORG 37-#define NUM_KINDS 38-#define KIND_TABLE {{0}, {EF_CRAWLER, {-1, 213, 212, -1, -1, -1, -1, -1, -1, -1, -1, 215, 216}}, {EF_BUZZER, {218, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 220, 221}}, {EF_SHADE, {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}}, {EF_CLIMBER, {-1, -1, 228, 227, -1, -1, -1, -1, -1, -1, -1, 225, 226}}, {EF_BOUNCER, {-1, -1, -1, 231, -1, -1, -1, -1, -1, -1, -1, 229, 230}}, {EF_SPITTER, {-1, -1, -1, 234, 235, 233, -1, -1, -1, -1, -1, 232, -1}}, {EF_ROLLER, {238, -1, -1, 240, 239, 241, -1, -1, -1, -1, -1, 236, 237}}, {EF_BLOCKER, {248, -1, -1, 244, 249, 242, 243, 250, 251, 247, 246, -1, 245}}, {EF_HUSK, {257, 258, 259, 252, 254, 253, -1, -1, -1, -1, -1, 255, 256}}, {EF_HUSK, {265, 266, 267, 260, 262, 261, -1, -1, -1, -1, -1, 263, 264}}, {EF_HUSK, {273, 274, 275, 268, 270, 269, -1, -1, -1, -1, -1, 271, 272}}, {EF_HUSK, {281, 282, 283, 276, 278, 277, -1, -1, -1, -1, -1, 279, 280}}, {EF_LEAPER, {287, 289, 290, 284, 288, -1, -1, -1, -1, -1, -1, 285, 286}}, {EF_GUARD, {296, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 293, 294}}, {EF_FK, {318, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 316}}, {EF_FKHEAD, {338, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336}}, {EF_HATCHER, {-1, -1, -1, 343, 342, -1, -1, -1, -1, -1, -1, 340, 341}}, {EF_HATCHLING, {-1, -1, -1, 344, -1, -1, -1, -1, -1, -1, -1, -1, -1}}, {EF_SLUG, {350, -1, -1, 348, 349, 352, 351, 345, -1, -1, -1, 346, 347}}, {EF_GFLY, {365, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}}, {EF_MOSSWALKER, {-1, 374, 375, 373, 369, 370, -1, -1, -1, -1, -1, 371, 372}}, {EF_PIGEON, {-1, -1, -1, 377, 378, 379, 376, -1, -1, -1, -1, -1, -1}}, {EF_PLANTTRAP, {381, -1, -1, 384, 383, 382, -1, -1, -1, -1, -1, 380, -1}}, {EF_SHAKER, {388, 389, 390, 385, -1, -1, -1, -1, -1, -1, -1, 386, 387}}, {EF_MOSQUITO, {395, -1, -1, 397, 396, 392, 391, -1, -1, -1, -1, 393, 394}}, {EF_FATFLY, {401, -1, -1, 398, -1, -1, -1, -1, -1, -1, -1, 399, 400}}, {EF_MOSSCHARGER, {-1, -1, -1, 402, 403, 406, 409, 408, 410, 407, -1, 404, 405}}, {EF_MOSSKNIGHT, {416, 431, 435, -1, -1, -1, -1, -1, -1, -1, -1, 411, 412}}, {EF_HORNET, {451, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 439, -1}}, {EF_MENDER, {475, -1, -1, 476, 474, -1, -1, -1, -1, -1, -1, 472, 473}}, {EF_FUNGLING, {478, -1, -1, 479, -1, -1, -1, -1, -1, -1, -1, 477, -1}}, {EF_AMBLOOM, {-1, 482, 483, -1, -1, -1, -1, -1, -1, -1, -1, 480, 481}}, {EF_FUNGOON, {486, -1, -1, 488, 487, 489, 485, -1, -1, -1, -1, 484, -1}}, {EF_SHRUMELING, {492, -1, -1, 500, 499, -1, -1, -1, -1, -1, -1, 490, 491}}, {EF_SHAKER, {504, 505, 506, 501, -1, -1, -1, -1, -1, -1, -1, 502, 503}}, {EF_OGRE, {510, 515, -1, 516, 514, 507, 512, 513, 508, 511, -1, 509, -1}}, {EF_SPORG, {520, -1, -1, 523, 517, 522, -1, -1, -1, -1, -1, 518, -1}}}+#define EK_MANTIS 38+#define EK_MANTISFLYER 39+#define EK_MANTISLORD 40+#define NUM_KINDS 41+#define KIND_TABLE {{0}, {EF_CRAWLER, {-1, 215, 214, -1, -1, -1, -1, -1, -1, -1, -1, 217, 218}}, {EF_BUZZER, {220, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 222, 223}}, {EF_SHADE, {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}}, {EF_CLIMBER, {-1, -1, 230, 229, -1, -1, -1, -1, -1, -1, -1, 227, 228}}, {EF_BOUNCER, {-1, -1, -1, 233, -1, -1, -1, -1, -1, -1, -1, 231, 232}}, {EF_SPITTER, {-1, -1, -1, 236, 237, 235, -1, -1, -1, -1, -1, 234, -1}}, {EF_ROLLER, {240, -1, -1, 242, 241, 243, -1, -1, -1, -1, -1, 238, 239}}, {EF_BLOCKER, {250, -1, -1, 246, 251, 244, 245, 252, 253, 249, 248, -1, 247}}, {EF_HUSK, {259, 260, 261, 254, 256, 255, -1, -1, -1, -1, -1, 257, 258}}, {EF_HUSK, {267, 268, 269, 262, 264, 263, -1, -1, -1, -1, -1, 265, 266}}, {EF_HUSK, {275, 276, 277, 270, 272, 271, -1, -1, -1, -1, -1, 273, 274}}, {EF_HUSK, {283, 284, 285, 278, 280, 279, -1, -1, -1, -1, -1, 281, 282}}, {EF_LEAPER, {289, 291, 292, 286, 290, -1, -1, -1, -1, -1, -1, 287, 288}}, {EF_GUARD, {298, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 295, 296}}, {EF_FK, {320, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318}}, {EF_FKHEAD, {340, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 338}}, {EF_HATCHER, {-1, -1, -1, 345, 344, -1, -1, -1, -1, -1, -1, 342, 343}}, {EF_HATCHLING, {-1, -1, -1, 346, -1, -1, -1, -1, -1, -1, -1, -1, -1}}, {EF_SLUG, {352, -1, -1, 350, 351, 354, 353, 347, -1, -1, -1, 348, 349}}, {EF_GFLY, {367, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}}, {EF_MOSSWALKER, {-1, 376, 377, 375, 371, 372, -1, -1, -1, -1, -1, 373, 374}}, {EF_PIGEON, {-1, -1, -1, 379, 380, 381, 378, -1, -1, -1, -1, -1, -1}}, {EF_PLANTTRAP, {383, -1, -1, 386, 385, 384, -1, -1, -1, -1, -1, 382, -1}}, {EF_SHAKER, {390, 391, 392, 387, -1, -1, -1, -1, -1, -1, -1, 388, 389}}, {EF_MOSQUITO, {397, -1, -1, 399, 398, 394, 393, -1, -1, -1, -1, 395, 396}}, {EF_FATFLY, {403, -1, -1, 400, -1, -1, -1, -1, -1, -1, -1, 401, 402}}, {EF_MOSSCHARGER, {-1, -1, -1, 404, 405, 408, 411, 410, 412, 409, -1, 406, 407}}, {EF_MOSSKNIGHT, {418, 433, 437, -1, -1, -1, -1, -1, -1, -1, -1, 413, 414}}, {EF_HORNET, {453, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 441, -1}}, {EF_MENDER, {477, -1, -1, 478, 476, -1, -1, -1, -1, -1, -1, 474, 475}}, {EF_FUNGLING, {480, -1, -1, 481, -1, -1, -1, -1, -1, -1, -1, 479, -1}}, {EF_AMBLOOM, {-1, 484, 485, -1, -1, -1, -1, -1, -1, -1, -1, 482, 483}}, {EF_FUNGOON, {488, -1, -1, 490, 489, 491, 487, -1, -1, -1, -1, 486, -1}}, {EF_SHRUMELING, {494, -1, -1, 502, 501, -1, -1, -1, -1, -1, -1, 492, 493}}, {EF_SHAKER, {506, 507, 508, 503, -1, -1, -1, -1, -1, -1, -1, 504, 505}}, {EF_OGRE, {512, 517, -1, 518, 516, 509, 514, 515, 510, 513, -1, 511, -1}}, {EF_SPORG, {522, -1, -1, 525, 519, 524, -1, -1, -1, -1, -1, 520, -1}}, {EF_MANTIS, {533, 536, 541, 528, 526, 527, 529, 538, 540, 539, 542, 532, -1}}, {EF_MANTISFLYER, {546, -1, -1, 547, 548, 549, 544, 543, 545, -1, -1, -1, -1}}, {EF_MANTISLORD, {578, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 555, 556}}}#define TXT_PROMPT_LISTEN 40#define TXT_PROMPT_REST 41#define TXT_PROMPT_INSPECT 42@@ -916,21 +972,38 @@#define VMEV_UPDATE_SHAMAN {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}#define VMEV_SHOP_REGION_INACTIVE {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}#define VMEV_SHOP_REGION_ACTIVE {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}+#define VMEV_MLORD_START_MAIN {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 71, 255}+#define VMEV_MLORD_START_SUB {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 66, 255}+#define VMEV_MANTIS_DEFEATED {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 72, 255}+#define VMEV_MLORD_BOW {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 70, 255}+#define VMEV_MANTIS_DEFEAT {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}+#define VMEV_MLORD_CAGE_UP {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 63, 255}+#define VMEV_MLORD_FLOOR_EXTEND {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 75, 255}+#define VMEV_MLORD_GATE_OPEN {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 64, 255}+#define VMEV_RETURN {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 67, 255}#define VMSTR_NPC_TITLE 19-#define VMSTR_VISITED 270-#define VMSTR_DISPLAY_RIGHT 271-#define VMSTR_HORNET_SAVER 272-#define VMSTR_ITEM 273-#define VMSTR_ARENA_ITEM 235-#define VMSTR_ARENA_ITEM_KEPT 237+#define VMSTR_VISITED 223+#define VMSTR_DISPLAY_RIGHT 317+#define VMSTR_HORNET_SAVER 318+#define VMSTR_ITEM 312+#define VMSTR_ARENA_ITEM 264+#define VMSTR_ARENA_ITEM_KEPT 266+#define VMSTR_MANTIS_LORD_THRONE_1 209+#define VMSTR_MANTIS_LORD_THRONE_3 298#define STR_ATTACK_RANGE 15-#define STR_EVADE_RANGE 28-#define STR_SPIT_RANGE 29-#define STR_WAKE_BOX 30-#define STR_SLASH_HITBOX 31-#define STR_SLASH2_HITBOX 32+#define STR_EVADE_RANGE 37+#define STR_SPIT_RANGE 38+#define STR_WAKE_BOX 39+#define STR_SLASH_HITBOX 40+#define STR_SLASH2_HITBOX 41#define STR_DOOR_STAGEXIT 19#define STR_SMASH_HITS 13+#define STR_HEAD_BOX 27+#define STR_HEAD_BOX_F 28+#define STR_SLASH_FORWARD 26+#define STR_SLASH_UP 25+#define STR_STING_HIT 21+#define STR_DASH_HIT 36#define TITLE_KINGSPASS 0#define TITLE_DIRTMOUTH 1#define TITLE_CROSSROADS 2@@ -957,78 +1030,79 @@#define TITLE_FUNGUS_CORE 23#define TITLE_RUINS 24#define TITLE_MAGE_TOWER 25-#define NUM_TITLES 26-#define TITLE_TABLE {{55, 56, -1, -1}, {57, 58, 59, -1}, {60, 61, -1, 62}, {63, 64, -1, 65}, {66, 67, -1, 68}, {69, 70, -1, -1}, {71, 72, 73, -1}, {74, 75, -1, -1}, {76, 77, -1, -1}, {78, 79, -1, -1}, {80, 81, -1, -1}, {82, 83, -1, -1}, {84, 85, -1, -1}, {86, 87, -1, -1}, {88, 89, -1, 90}, {91, 92, -1, 93}, {91, 92, -1, 94}, {95, 96, 97, -1}, {95, 96, -1, -1}, {98, 99, -1, 100}, {101, 102, -1, 103}, {104, 105, -1, 106}, {107, 108, -1, 109}, {110, 111, -1, 103}, {112, 113, -1, -1}, {114, 115, 116, -1}}-#define SPRITE_FLEUR_TOP 2637+#define TITLE_MANTIS_LORDS 26+#define NUM_TITLES 27+#define TITLE_TABLE {{55, 56, -1, -1}, {57, 58, 59, -1}, {60, 61, -1, 62}, {63, 64, -1, 65}, {66, 67, -1, 68}, {69, 70, -1, -1}, {71, 72, 73, -1}, {74, 75, -1, -1}, {76, 77, -1, -1}, {78, 79, -1, -1}, {80, 81, -1, -1}, {82, 83, -1, -1}, {84, 85, -1, -1}, {86, 87, -1, -1}, {88, 89, -1, 90}, {91, 92, -1, 93}, {91, 92, -1, 94}, {95, 96, 97, -1}, {95, 96, -1, -1}, {98, 99, -1, 100}, {101, 102, -1, 103}, {104, 105, -1, 106}, {107, 108, -1, 109}, {110, 111, -1, 103}, {112, 113, -1, -1}, {114, 115, 116, -1}, {117, 118, -1, 109}}+#define SPRITE_FLEUR_TOP 2809#define FLEUR_TOP_RECTS {{0.781f, -0.844f, 0.953f, -0.688f}, {-1.078f, -0.984f, 1.141f, -0.531f}, {-1.281f, -1.016f, 1.313f, -0.484f}, {-1.359f, -1.016f, 1.969f, -0.141f}, {-2.141f, -1.031f, 2.531f, 0.047f}, {-2.250f, -1.078f, 2.766f, 0.266f}, {-2.797f, -1.203f, 3.094f, 0.578f}, {-2.938f, -1.219f, 3.219f, 0.859f}, {-3.203f, -1.234f, 3.469f, 1.141f}, {-3.312f, -1.234f, 3.766f, 1.281f}, {-3.547f, -1.250f, 4.000f, 1.328f}, {-3.844f, -1.250f, 4.016f, 1.328f}, {-4.016f, -1.250f, 4.031f, 1.344f}, {-4.031f, -1.250f, 4.031f, 1.344f}, {-4.047f, -1.250f, 4.031f, 1.359f}, {-4.047f, -1.250f, 4.031f, 1.359f}, {-4.047f, -1.266f, 4.031f, 1.359f}, {-4.047f, -1.266f, 4.031f, 1.359f}, {-4.062f, -1.266f, 4.047f, 1.375f}, {-4.062f, -1.266f, 4.047f, 1.375f}, {-4.062f, -1.266f, 4.047f, 1.375f}, {-4.062f, -1.266f, 4.047f, 1.375f}}#define FLEUR_FRAMES 22#define FLEUR_FPS 15.0f-#define SPRITE_FLEUR_BOT 2638+#define SPRITE_FLEUR_BOT 2810#define FLEUR_BOT_RECTS {{0.000f, 0.000f, 0.016f, 0.016f}, {0.000f, 0.000f, 0.016f, 0.016f}, {0.391f, 0.406f, 0.828f, 0.844f}, {-1.063f, 0.281f, 1.516f, 1.016f}, {-1.594f, -0.047f, 2.109f, 1.031f}, {-1.984f, -0.156f, 2.375f, 1.047f}, {-2.531f, -0.438f, 2.719f, 1.172f}, {-2.688f, -0.594f, 2.766f, 1.188f}, {-2.797f, -0.797f, 3.156f, 1.219f}, {-3.078f, -0.938f, 3.219f, 1.219f}, {-3.250f, -1.156f, 3.438f, 1.219f}, {-3.250f, -1.172f, 3.828f, 1.219f}, {-3.781f, -1.188f, 4.203f, 1.234f}, {-3.984f, -1.188f, 4.344f, 1.234f}, {-4.281f, -1.203f, 4.562f, 1.234f}, {-4.406f, -1.203f, 4.641f, 1.234f}, {-4.578f, -1.219f, 4.719f, 1.234f}, {-4.656f, -1.219f, 4.719f, 1.234f}, {-4.734f, -1.219f, 4.734f, 1.234f}, {-4.750f, -1.234f, 4.734f, 1.234f}, {-4.766f, -1.234f, 4.734f, 1.250f}, {-4.766f, -1.234f, 4.734f, 1.250f}}-#define VM_PIECE_BASE 2627-#define SPRITE_MSG_BG 2639-#define SPRITE_MSG_STOP 2640-#define SPRITE_MSG_FLEUR 2641-#define SPRITE_MSG_KEY 2642-#define SPRITE_MSG_ICON_FIREBALL 2643-#define SPRITE_MSG_ICON_DASH 2644-#define SPRITE_MSG_ICON_WALLJUMP 2645-#define SPRITE_GRASS_BALL 2646-#define SPRITE_GAS 2647-#define SPRITE_GAS_FLASH 2648-#define SPRITE_SOUL_ORB 2649+#define VM_PIECE_BASE 2799+#define SPRITE_MSG_BG 2811+#define SPRITE_MSG_STOP 2812+#define SPRITE_MSG_FLEUR 2813+#define SPRITE_MSG_KEY 2814+#define SPRITE_MSG_ICON_FIREBALL 2815+#define SPRITE_MSG_ICON_DASH 2816+#define SPRITE_MSG_ICON_WALLJUMP 2817+#define SPRITE_GRASS_BALL 2818+#define SPRITE_GAS 2819+#define SPRITE_GAS_FLASH 2820+#define SPRITE_SOUL_ORB 2821#define SOUL_ORB_SORT {13, 0}-#define MSG_TABLE {{117, 118, 119, 120, 121, 122}, {123, 124, 125, 126, 127, 128}, {129, 124, 125, 130, 131, 132}}-#define NOTICE_BACKBOARD {2650, 1.0000f, 0.6931f}-#define TUTE_FLEUR {2641, 1.0000f, 1.0000f}-#define TUTE_BACKBOARD {2651, 1.0000f, 0.9560f}-#define TUTE_IMAGE {2652, 1.0000f, 1.0000f}-#define TUTE_STOP {2640, 1.0000f, 1.0000f}-#define FOCUS_PROMPT_BG {2653, 0.0000f, -1.7900f, 1.0000f, 1.0000f}-#define FOCUS_PROMPT_TEXTS {{133, 0.1765f, -2.3773f, 0}, {134, 0.1765f, -3.1983f, 0}, {135, -0.0488f, -4.1348f, 1}, {136, 0.2240f, -5.2114f, 0}}-#define FOCUS_PROMPT_KEY {122, 0.4659f, -4.4341f}-#define NOTICE_ICONS {2654, 2655, 2656}+#define MSG_TABLE {{119, 120, 121, 122, 123, 124}, {125, 126, 127, 128, 129, 130}, {131, 126, 127, 132, 133, 134}}+#define NOTICE_BACKBOARD {2822, 1.0000f, 0.6931f}+#define TUTE_FLEUR {2813, 1.0000f, 1.0000f}+#define TUTE_BACKBOARD {2823, 1.0000f, 0.9560f}+#define TUTE_IMAGE {2824, 1.0000f, 1.0000f}+#define TUTE_STOP {2812, 1.0000f, 1.0000f}+#define FOCUS_PROMPT_BG {2825, 0.0000f, -1.7900f, 1.0000f, 1.0000f}+#define FOCUS_PROMPT_TEXTS {{135, 0.1765f, -2.3773f, 0}, {136, 0.1765f, -3.1983f, 0}, {137, -0.0488f, -4.1348f, 1}, {138, 0.2240f, -5.2114f, 0}}+#define FOCUS_PROMPT_KEY {124, 0.4659f, -4.4341f}+#define NOTICE_ICONS {2826, 2827, 2828}#define CHARM_ICON_K 1.5000f-#define CHARM_ICONS {-1, 2657, 2658, 2659, 2660, -1, 2661, 2662, 2663, -1, -1, -1, -1, 2664, 2665, -1, -1, -1, 2666, 2667, 2668, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}-#define CHARM_NAMES {-1, 137, 138, 139, 140, -1, 141, 142, 143, -1, -1, -1, -1, 144, 145, -1, -1, -1, 146, 147, 148, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}-#define TXT_CHARM_TUTE_TITLE 149-#define TXT_CHARM_TUTE_SUB 150-#define TXT_CHARM_REMINDER 151-#define TXT_YN_YES 152-#define TXT_YN_NO 153-#define TXT_YN_NOT_ENOUGH 154-#define MENU_LOGO {2669, 0.0000f, 0.0000f, 1.0000f, 1.0000f}+#define CHARM_ICONS {-1, 2829, 2830, 2831, 2832, -1, 2833, 2834, 2835, -1, -1, -1, -1, 2836, 2837, -1, -1, -1, 2838, 2839, 2840, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}+#define CHARM_NAMES {-1, 139, 140, 141, 142, -1, 143, 144, 145, -1, -1, -1, -1, 146, 147, -1, -1, -1, 148, 149, 150, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}+#define TXT_CHARM_TUTE_TITLE 151+#define TXT_CHARM_TUTE_SUB 152+#define TXT_CHARM_REMINDER 153+#define TXT_YN_YES 154+#define TXT_YN_NO 155+#define TXT_YN_NOT_ENOUGH 156+#define MENU_LOGO {2841, 0.0000f, 0.0000f, 1.0000f, 1.0000f}#define MENU_LOGO_Y 3.6585f#define MENU_START_Y -1.4181f#define MENU_HELP_Y -2.3582f#define MENU_QUIT_Y -3.2982f-#define MENU_POINTER {2670, 0.0000f, 0.0000f, 1.0023f, 1.0000f}+#define MENU_POINTER {2842, 0.0000f, 0.0000f, 1.0023f, 1.0000f}#define MENU_POINTER_GAP 0.7525f#define MENU_PROFILES_TITLE_Y 6.4481f-#define MENU_PROFILES_FLEUR {2671, 0.0000f, 0.0000f, 1.0000f, 1.0807f}+#define MENU_PROFILES_FLEUR {2843, 0.0000f, 0.0000f, 1.0000f, 1.0807f}#define MENU_PROFILES_FLEUR_Y 5.4077f#define MENU_SLOT_X -2.8186f#define MENU_SLOT_Y 3.1252f#define MENU_SLOT_DY -2.3269f-#define MENU_SLOT_ZONES {{2, {2672, 0.0000f, 0.0000f, 1.0000f, 1.0000f}}, {4, {2673, 0.0000f, 0.0000f, 1.0000f, 1.0000f}}, {5, {2674, 0.0000f, 0.0000f, 1.0000f, 1.0000f}}, {6, {2675, 0.0000f, 0.0000f, 1.0000f, 1.0000f}}, {9, {2676, 0.0000f, 0.0000f, 1.0000f, 1.0000f}}, {22, {2677, 0.0000f, 0.0000f, 1.0000f, 1.0000f}}, {24, {2678, 0.0000f, 0.0000f, 1.0000f, 1.0000f}}, {35, {2679, 0.0000f, 0.0000f, 1.0000f, 1.0000f}}}+#define MENU_SLOT_ZONES {{2, {2844, 0.0000f, 0.0000f, 1.0000f, 1.0000f}}, {4, {2845, 0.0000f, 0.0000f, 1.0000f, 1.0000f}}, {5, {2846, 0.0000f, 0.0000f, 1.0000f, 1.0000f}}, {6, {2847, 0.0000f, 0.0000f, 1.0000f, 1.0000f}}, {9, {2848, 0.0000f, 0.0000f, 1.0000f, 1.0000f}}, {22, {2849, 0.0000f, 0.0000f, 1.0000f, 1.0000f}}, {24, {2850, 0.0000f, 0.0000f, 1.0000f, 1.0000f}}, {35, {2851, 0.0000f, 0.0000f, 1.0000f, 1.0000f}}}#define MENU_SLOT_NZONES 8#define MENU_SLOT_BG_DY 0.0102f-#define MENU_SLOT_FLEUR {2680, 0.0000f, 0.0000f, 1.0000f, 1.0000f}+#define MENU_SLOT_FLEUR {2852, 0.0000f, 0.0000f, 1.0000f, 1.0000f}#define MENU_SLOT_FLEUR_X 0.0000f#define MENU_SLOT_FLEUR_Y 0.4512f-#define MENU_SLOT_SELECTOR {2681, 0.0000f, 0.0000f, 1.0000f, 1.0000f}+#define MENU_SLOT_SELECTOR {2853, 0.0000f, 0.0000f, 1.0000f, 1.0000f}#define MENU_SLOT_SELECTOR_X -0.1626f#define MENU_SLOT_SELECTOR_Y 0.0813f-#define MENU_SLOT_CURSOR {2682, 0.0000f, 0.0000f, 1.0000f, 1.0025f}+#define MENU_SLOT_CURSOR {2854, 0.0000f, 0.0000f, 1.0000f, 1.0025f}#define MENU_SLOT_CURSOR_X -8.2367f#define MENU_SLOT_CURSOR_Y 0.0000f-#define MENU_SLOT_ORB {2683, 0.0000f, 0.0000f, 1.0000f, 1.0000f}+#define MENU_SLOT_ORB {2855, 0.0000f, 0.0000f, 1.0000f, 1.0000f}#define MENU_SLOT_ORB_X -4.3089f#define MENU_SLOT_ORB_Y 0.1230f-#define MENU_SLOT_GEO {2684, 0.0000f, 0.0000f, 1.0039f, 1.0000f}+#define MENU_SLOT_GEO {2856, 0.0000f, 0.0000f, 1.0039f, 1.0000f}#define MENU_SLOT_GEO_X -3.6961f#define MENU_SLOT_GEO_Y -0.5395f-#define MENU_SLOT_HEALTH {2685, 0.0000f, 0.0000f, 1.0000f, 1.0000f}+#define MENU_SLOT_HEALTH {2857, 0.0000f, 0.0000f, 1.0000f, 1.0000f}#define MENU_SLOT_HEALTH_X -3.5916f#define MENU_SLOT_HEALTH_Y 0.3577f#define MENU_SLOT_CURSOR_X2 8.0334f@@ -1046,80 +1120,80 @@#define MENU_SLOT_YES_X 2.5813f#define MENU_SLOT_NO_X 6.2296f#define MENU_BACK_Y -5.5406f-#define MENU_PAUSE_TOP {2686, 0.0000f, 0.0000f, 1.0000f, 1.0000f}+#define MENU_PAUSE_TOP {2858, 0.0000f, 0.0000f, 1.0000f, 1.0000f}#define MENU_PAUSE_TOP_Y 2.3653f-#define MENU_PAUSE_BOT {2687, 0.0000f, 0.0000f, 1.0000f, 1.0000f}+#define MENU_PAUSE_BOT {2859, 0.0000f, 0.0000f, 1.0000f, 1.0000f}#define MENU_PAUSE_BOT_Y -1.8877f#define MENU_PAUSE_CONTINUE_Y 1.1916f#define MENU_PAUSE_HELP_Y 0.0940f#define MENU_PAUSE_QUIT_Y -1.0035f#define MENU_KEYS_TITLE_Y 5.7763f-#define MENU_KEYS_FLEUR {2671, 0.0000f, 0.0000f, 1.0000f, 1.0807f}+#define MENU_KEYS_FLEUR {2843, 0.0000f, 0.0000f, 1.0000f, 1.0807f}#define MENU_KEYS_FLEUR_Y 4.7346f#define MENU_KEYS_ROW_Y 3.1809f#define MENU_KEYS_DY -1.0162f#define MENU_KEYS_BUTTON_Y -5.8306f-#define TXT_MAIN_START 155-#define TXT_MAIN_QUIT 156-#define TXT_PROFILE_NEW_GAME 157-#define TXT_PROFILE_CLEAR_BUTTON 158-#define TXT_PROFILE_CLEAR_PROMPT 159-#define TXT_NAV_YES 160-#define TXT_NAV_NO 161-#define TXT_NAV_BACK 162-#define TXT_PAUSE_CONTINUE 163-#define TXT_PAUSE_MAIN 164-#define TXT_PROFILE_CORRUPTED 165-#define TXT_PROFILE_LOADING 166-#define TXT_SCREEN_SAVE_PROFILES 167-#define TXT_SCREEN_KEYBOARD 168-#define MENU_KEYS {{169, 180}, {170, 181}, {171, 182}, {172, 183}, {173, 184}, {174, 185}, {175, 186}, {176, 187}, {177, 188}, {178, 189}, {179, 190}}+#define TXT_MAIN_START 157+#define TXT_MAIN_QUIT 158+#define TXT_PROFILE_NEW_GAME 159+#define TXT_PROFILE_CLEAR_BUTTON 160+#define TXT_PROFILE_CLEAR_PROMPT 161+#define TXT_NAV_YES 162+#define TXT_NAV_NO 163+#define TXT_NAV_BACK 164+#define TXT_PAUSE_CONTINUE 165+#define TXT_PAUSE_MAIN 166+#define TXT_PROFILE_CORRUPTED 167+#define TXT_PROFILE_LOADING 168+#define TXT_SCREEN_SAVE_PROFILES 169+#define TXT_SCREEN_KEYBOARD 170+#define MENU_KEYS {{171, 182}, {172, 183}, {173, 184}, {174, 185}, {175, 186}, {176, 187}, {177, 188}, {178, 189}, {179, 190}, {180, 191}, {181, 192}}#define MENU_NKEYS 11-#define TXT_HELP 191-#define TXT_HELP_TITLE 192-#define TXT_NEXT 193-#define TXT_HELP_LINES 194-#define TXT_ZONES {195, 196, 197, 198, 199, 200, 201, 202}-#define TXT_CROSS_TO 203-#define TXT_CROSS_APPS {204, 205}+#define TXT_HELP 193+#define TXT_HELP_TITLE 194+#define TXT_NEXT 195+#define TXT_HELP_LINES 196+#define TXT_ZONES {197, 198, 199, 200, 201, 202, 203, 204}+#define TXT_CROSS_TO 205+#define TXT_CROSS_APPS {206, 207}#define CROSS_NAPPS 2-#define TXT_CROSS_SAVED 206-#define TXT_CROSS_NEW 207+#define TXT_CROSS_SAVED 208+#define TXT_CROSS_NEW 209#define INV_X -4.0500f#define INV_Y 7.5500f-#define INV_BORDER {{2688, -8.0000f, -2.8100f, 1.0000f, 1.0000f}, {2688, 16.1400f, -2.8100f, -1.0000f, 1.0000f}, {2689, -8.0000f, -12.8700f, 0.9877f, -1.0000f}, {2690, 16.2400f, -12.8700f, -1.0000f, -1.0000f}, {2691, 3.9400f, -0.6200f, 1.0000f, 1.0000f}, {2692, 4.0000f, -14.3600f, 1.0000f, 1.0000f}}+#define INV_BORDER {{2860, -8.0000f, -2.8100f, 1.0000f, 1.0000f}, {2860, 16.1400f, -2.8100f, -1.0000f, 1.0000f}, {2861, -8.0000f, -12.8700f, 0.9877f, -1.0000f}, {2862, 16.2400f, -12.8700f, -1.0000f, -1.0000f}, {2863, 3.9400f, -0.6200f, 1.0000f, 1.0000f}, {2864, 4.0000f, -14.3600f, 1.0000f, 1.0000f}}#define INV_NBORDER 6-#define INV_FRAME {2693, 4.0479f, -7.1963f, 1.0f, 1.0f}-#define INV_ARROW_L {2694, -9.8300f, -7.2000f, 1.0000f, 1.0000f}-#define INV_ARROW_R {2694, 18.0300f, -7.2000f, -1.0000f, 1.0000f}-#define INV_PANE_ARROW_L {2695, -9.8600f, -0.4300f, -1.0000f, 1.0000f}-#define INV_PANE_ARROW_R {2695, 18.0400f, -0.4300f, 1.0000f, 1.0000f}+#define INV_FRAME {2865, 4.0479f, -7.1963f, 1.0f, 1.0f}+#define INV_ARROW_L {2866, -9.8300f, -7.2000f, 1.0000f, 1.0000f}+#define INV_ARROW_R {2866, 18.0300f, -7.2000f, -1.0000f, 1.0000f}+#define INV_PANE_ARROW_L {2867, -9.8600f, -0.4300f, -1.0000f, 1.0000f}+#define INV_PANE_ARROW_R {2867, 18.0400f, -0.4300f, 1.0000f, 1.0000f}#define INV_PANE_NAME {3.9500f, -0.0745f, 8.3290f}#define INV_PANE_NAME_L {-9.4745f, -0.0646f, 8.3290f}#define INV_PANE_NAME_R {17.6945f, -0.0646f, 8.3290f}-#define TXT_INV_PANES {210, 211, 212, 213}-#define CH_BB {2696, -7.9200f, -8.3700f, 1.0000f, 1.0000f}+#define TXT_INV_PANES {212, 213, 214, 215}+#define CH_BB {2868, -7.9200f, -8.3700f, 1.0000f, 1.0000f}#define CH_BB_POS {{-7.9200f, -8.3700f}, {-6.4200f, -8.3700f}, {-4.9200f, -8.3400f}, {-3.4200f, -8.3400f}, {-1.9200f, -8.3400f}, {-0.4200f, -8.3400f}, {1.0800f, -8.3400f}, {2.5800f, -8.3400f}, {4.0800f, -8.3400f}, {5.5800f, -8.3400f}, {-7.0100f, -9.7900f}, {-5.5100f, -9.7900f}, {-4.0100f, -9.7900f}, {-2.5100f, -9.7900f}, {-1.0100f, -9.7900f}, {0.4900f, -9.7900f}, {1.9900f, -9.7900f}, {3.4900f, -9.7900f}, {4.9900f, -9.7900f}, {6.4900f, -9.7900f}, {-7.9200f, -11.2600f}, {-6.4200f, -11.2600f}, {-4.9200f, -11.2600f}, {-3.4200f, -11.2600f}, {-1.9200f, -11.2600f}, {-0.4200f, -11.2600f}, {1.0800f, -11.2600f}, {2.5800f, -11.2600f}, {4.0800f, -11.2600f}, {5.5800f, -11.2600f}, {-7.0100f, -12.7200f}, {-5.5100f, -12.7200f}, {-4.0100f, -12.7200f}, {-2.5100f, -12.7200f}, {-1.0100f, -12.7200f}, {0.4900f, -12.7200f}, {1.9900f, -12.7200f}, {3.4900f, -12.7200f}, {4.9900f, -12.7200f}, {6.4900f, -12.7200f}}#define CH_BB_BOX {1.5002f, 1.4969f, -0.0257f, 0.0685f}#define CH_BB_CHARM {2, 1, 4, 20, 19, 21, 31, 37, 3, 35, 23, 24, 25, 33, 14, 15, 32, 18, 13, 6, 12, 5, 11, 10, 22, 7, 34, 8, 9, 27, 29, 17, 16, 28, 26, 39, 30, 38, 40, 36}-#define CH_GLOW {2697, 0.0500f, 0.0600f, 1.0000f, 0.9919f}+#define CH_GLOW {2869, 0.0500f, 0.0600f, 1.0000f, 0.9919f}#define CH_GLOW_A 0.6970f-#define CH_ICONS {-1, 2657, 2658, 2659, 2660, -1, 2661, 2662, 2663, -1, -1, -1, -1, 2664, 2665, -1, -1, -1, 2666, 2667, 2668, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}-#define CH_NEXT_DOT {2698, 0.0000f, 0.0000f, 1.0000f, 1.0000f}+#define CH_ICONS {-1, 2829, 2830, 2831, 2832, -1, 2833, 2834, 2835, -1, -1, -1, -1, 2836, 2837, -1, -1, -1, 2838, 2839, 2840, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}+#define CH_NEXT_DOT {2870, 0.0000f, 0.0000f, 1.0000f, 1.0000f}#define CH_NEXT_DOT_BOX {1.2143f, 1.2736f, -0.0209f, 0.0123f}#define CH_EQ_BOX {1.4950f, 1.4950f, 0.0000f, 0.0000f}#define CH_TEXT_EQUIPPED {-8.1273f, -2.0957f, 5.4345f}-#define CH_NOTCH_FULL {2699, 0.0000f, 0.0000f, 1.0000f, 1.0000f}-#define CH_NOTCH_EMPTY {2700, 0.0000f, 0.0000f, 1.0000f, 1.0000f}+#define CH_NOTCH_FULL {2871, 0.0000f, 0.0000f, 1.0000f, 1.0000f}+#define CH_NOTCH_EMPTY {2872, 0.0000f, 0.0000f, 1.0000f, 1.0000f}#define CH_NOTCH_X -7.8000f#define CH_NOTCH_Y -6.1600f#define CH_NOTCH_DX 0.8100f#define CH_NOTCH_FULL_RGB {255, 216, 0}#define CH_NOTCH_OVER_RGB {255, 36, 67}#define CH_TEXT_NOTCHES {-8.0272f, -5.0757f, 5.4345f}-#define CH_DIVIDER {2701, -0.8400f, -6.9300f, 1.0000f, 0.1591f}+#define CH_DIVIDER {2873, -0.8400f, -6.9300f, 1.0000f, 0.1591f}#define CH_COST_TEXT {10.7172f, -3.3457f, 5.4345f}-#define CH_COST_PIP {2699, 0.0000f, 0.0000f, 1.0000f, 1.0000f}+#define CH_COST_PIP {2871, 0.0000f, 0.0000f, 1.0000f, 1.0000f}#define CH_COST_X 11.2300f#define CH_COST_Y -3.6600f#define CH_COST_DX 0.7500f@@ -1128,60 +1202,60 @@#define CH_NAME {12.4800f, -2.2710f, 8.8867f}#define CH_DESC {8.0382f, -7.3673f, 8.8867f}#define CH_CONFIRM {15.7465f, -13.0221f, 15.3500f}-#define CH_CONFIRM_KEY {2702, 16.3208f, -13.2878f, 1.0f, 1.0f}+#define CH_CONFIRM_KEY {2874, 16.3208f, -13.2878f, 1.0f, 1.0f}#define CH_CONFIRM_KEY_W 0.6412f-#define CH_CURSOR {2703, 0.0000f, 0.0000f, 1.0000f, 0.9756f}+#define CH_CURSOR {2875, 0.0000f, 0.0000f, 1.0000f, 0.9756f}#define CH_CURSOR_K {1.0720f, 1.0458f}#define CH_CURSOR_CORNERS {{1.0000f, 1.0000f}, {-1.1000f, 1.0000f}, {1.0000f, -1.0089f}, {-1.1000f, -1.0089f}}-#define TXT_CHARM_TXT_EQUIPPED 214-#define TXT_CHARM_TXT_OVERCHARMED 215-#define TXT_CHARM_TXT_COST 216-#define TXT_CTRL_EQUIP 217-#define TXT_CTRL_UNEQUIP 218-#define TXT_CHARM_ALERT_NONE 219-#define TXT_CHARM_ALERT_NONE_BENCH 220-#define TXT_CHARM_NOTCHES 221-#define TXT_CHARM_NAMES_INV {-1, 222, 223, 224, 225, -1, 226, 227, 228, -1, -1, -1, -1, 229, 230, -1, -1, -1, 231, 232, 233, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}-#define TXT_CHARM_DESCS {-1, 234, 235, 236, 237, -1, 238, 239, 240, -1, -1, -1, -1, 241, 242, -1, -1, -1, 243, 244, 245, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}-#define TXT_KEY_OK 246-#define TXT_CHARM_BENCH 247-#define INV_FIXED {{2704, -7.1600f, -3.8300f, 1.0000f, 1.0000f}, {2705, -3.2500f, -4.2100f, 1.0000f, 1.0000f}, {2706, -7.2900f, -9.4400f, 1.0000f, 1.0000f}, {2707, -4.7200f, -6.2100f, 1.0000f, 1.0000f}, {2708, -3.2700f, -7.4600f, 1.0000f, 1.0000f}, {2709, -5.7200f, -13.3200f, 1.0000f, 1.0000f}}-#define INV_FIXED_BG {{-1, 0, 0, 0, 0}, {-1, 0, 0, 0, 0}, {-1, 0, 0, 0, 0}, {2710, -4.6374f, -6.2413f, 1.0000f, 1.0000f}, {2711, -3.2774f, -7.4713f, 1.0000f, 1.0000f}, {-1, 0, 0, 0, 0}}+#define TXT_CHARM_TXT_EQUIPPED 216+#define TXT_CHARM_TXT_OVERCHARMED 217+#define TXT_CHARM_TXT_COST 218+#define TXT_CTRL_EQUIP 219+#define TXT_CTRL_UNEQUIP 220+#define TXT_CHARM_ALERT_NONE 221+#define TXT_CHARM_ALERT_NONE_BENCH 222+#define TXT_CHARM_NOTCHES 223+#define TXT_CHARM_NAMES_INV {-1, 224, 225, 226, 227, -1, 228, 229, 230, -1, -1, -1, -1, 231, 232, -1, -1, -1, 233, 234, 235, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}+#define TXT_CHARM_DESCS {-1, 236, 237, 238, 239, -1, 240, 241, 242, -1, -1, -1, -1, 243, 244, -1, -1, -1, 245, 246, 247, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}+#define TXT_KEY_OK 248+#define TXT_CHARM_BENCH 249+#define INV_FIXED {{2876, -7.1600f, -3.8300f, 1.0000f, 1.0000f}, {2877, -3.2500f, -4.2100f, 1.0000f, 1.0000f}, {2878, -7.2900f, -9.4400f, 1.0000f, 1.0000f}, {2879, -4.7200f, -6.2100f, 1.0000f, 1.0000f}, {2880, -3.2700f, -7.4600f, 1.0000f, 1.0000f}, {2881, -5.7200f, -13.3200f, 1.0000f, 1.0000f}}+#define INV_FIXED_BG {{-1, 0, 0, 0, 0}, {-1, 0, 0, 0, 0}, {-1, 0, 0, 0, 0}, {2882, -4.6374f, -6.2413f, 1.0000f, 1.0000f}, {2883, -3.2774f, -7.4713f, 1.0000f, 1.0000f}, {-1, 0, 0, 0, 0}}#define INV_FIXED_BOX {{1.9363f, 2.9287f, -0.0651f, 0.0923f}, {1.4420f, 1.4140f, -0.0546f, 0.0682f}, {1.6244f, 5.3245f, 0.0126f, 0.1884f}, {1.7500f, 1.7500f, 0.0000f, 0.0000f}, {1.8505f, 1.8756f, -0.0503f, 0.0629f}, {7.8215f, 1.4409f, 1.7816f, -0.0205f}}-#define INV_HEART_PIECES {{2712, -7.1460f, -3.5360f, 1.0000f, 1.0000f}, {2713, -7.1460f, -3.5360f, 1.0000f, 1.0000f}, {2714, -7.1460f, -3.5360f, 1.0000f, 1.0000f}, {2715, -7.1460f, -3.5360f, 1.0000f, 1.0000f}}-#define INV_VESSEL_PIECES {{2716, -3.5860f, -4.3220f, 1.0000f, 1.0000f}, {2717, -3.2892f, -4.3556f, 1.0000f, 1.0000f}, {2718, -3.2500f, -4.1540f, 1.0000f, 1.0000f}}+#define INV_HEART_PIECES {{2884, -7.1460f, -3.5360f, 1.0000f, 1.0000f}, {2885, -7.1460f, -3.5360f, 1.0000f, 1.0000f}, {2886, -7.1460f, -3.5360f, 1.0000f, 1.0000f}, {2887, -7.1460f, -3.5360f, 1.0000f, 1.0000f}}+#define INV_VESSEL_PIECES {{2888, -3.5860f, -4.3220f, 1.0000f, 1.0000f}, {2889, -3.2892f, -4.3556f, 1.0000f, 1.0000f}, {2890, -3.2500f, -4.1540f, 1.0000f, 1.0000f}}#define INV_GEO_TEXT {-4.8612f, -12.9979f, 1.6942f}#define INV_EQ_X 1.1000f#define INV_EQ_Y -3.8000f#define INV_EQ_DX 2.0800f#define INV_EQ_DY -2.1800f-#define INV_EQ {{2719, 1.1000f, -3.8000f, 1.0000f, 1.0000f}, {2720, 1.1000f, -3.8000f, 1.0000f, 1.0000f}, {2721, 1.1000f, -3.8000f, 1.0000f, 1.0000f}, {2722, 1.1300f, -3.8000f, 1.0000f, 1.0000f}, {2723, 1.1300f, -3.8000f, 1.0000f, 1.0000f}, {2724, 1.1300f, -3.8000f, 1.0000f, 1.0000f}, {2725, 1.1300f, -3.8000f, 1.0000f, 1.0000f}}+#define INV_EQ {{2891, 1.1000f, -3.8000f, 1.0000f, 1.0000f}, {2892, 1.1000f, -3.8000f, 1.0000f, 1.0000f}, {2893, 1.1000f, -3.8000f, 1.0000f, 1.0000f}, {2894, 1.1300f, -3.8000f, 1.0000f, 1.0000f}, {2895, 1.1300f, -3.8000f, 1.0000f, 1.0000f}, {2896, 1.1300f, -3.8000f, 1.0000f, 1.0000f}, {2897, 1.1300f, -3.8000f, 1.0000f, 1.0000f}}#define INV_EQ_BOX {{1.4420f, 1.4140f, 0.0000f, 0.0000f}, {1.4420f, 1.4140f, 0.0000f, 0.0000f}, {1.4420f, 1.4140f, 0.0000f, 0.0000f}, {1.4420f, 1.4140f, 0.0000f, 0.0000f}, {1.4420f, 1.4140f, 0.0000f, 0.0000f}, {1.4420f, 1.4140f, 0.0000f, 0.0000f}, {1.4420f, 1.4140f, 0.0000f, 0.0000f}}-#define INV_TRINKETS {{2726, 1.1000f, -10.7400f, 1.0000f, 1.0000f}, {2727, 3.1800f, -10.7400f, 1.0000f, 1.0000f}, {2728, 5.2600f, -10.7400f, 1.0000f, 1.0000f}, {2729, 7.4000f, -10.7800f, 1.0000f, 1.0000f}}+#define INV_TRINKETS {{2898, 1.1000f, -10.7400f, 1.0000f, 1.0000f}, {2899, 3.1800f, -10.7400f, 1.0000f, 1.0000f}, {2900, 5.2600f, -10.7400f, 1.0000f, 1.0000f}, {2901, 7.4000f, -10.7800f, 1.0000f, 1.0000f}}#define INV_TRINKET_BOX {{1.3970f, 1.7141f, 0.0000f, -0.1535f}, {1.3970f, 1.7141f, 0.0000f, -0.1535f}, {1.3970f, 1.7141f, 0.0000f, -0.1535f}, {1.2162f, 1.5101f, -0.0416f, -0.0832f}}#define INV_TRINKET_TEXT {0.3740f, -0.2538f, 1.3871f}-#define INV_TRINKET_BB {2730, 4.2400f, -10.8700f, 1.0000f, 1.0000f}-#define INV_DIVIDERS {{2731, -0.1800f, -7.5100f, 1.0000f, 0.2443f, -90.0000f}, {2731, 8.7300f, -7.5100f, 1.0000f, 0.2443f, -90.0000f}}+#define INV_TRINKET_BB {2902, 4.2400f, -10.8700f, 1.0000f, 1.0000f}+#define INV_DIVIDERS {{2903, -0.1800f, -7.5100f, 1.0000f, 0.2443f, -90.0000f}, {2903, 8.7300f, -7.5100f, 1.0000f, 0.2443f, -90.0000f}}#define INV_NAME {12.9500f, -1.9345f, 8.3290f}#define INV_DESC {9.2144f, -3.1678f, 7.6475f}-#define TXT_INV_HEART {{248, 249}, {250, 251}, {252, 253}, {250, 254}, {250, 255}, {256, 257}}-#define TXT_INV_VESSEL {{248, 249}, {258, 259}, {260, 261}, {258, 262}, {263, 264}}-#define TXT_INV_FIXED {{265, 266}, {267, 268}, {269, 270}, {271, 272}}-#define TXT_INV_EQ {{273, 274}, {275, 276}, {277, 278}, {279, 280}, {281, 282}, {283, 284}, {285, 286}}-#define TXT_INV_QUILL {287, 288, 289, 290}-#define TXT_INV_TRINKETS {{291, 292}, {293, 294}, {295, 296}, {297, 298}}-#define SHOP_BACKBOARD {2732, 4.9000f, -0.3200f, 0.8667f, 1.0000f}-#define SHOP_MASK_TOP {2733, 5.1230f, 4.8800f, 1.0000f, 0.9013f}-#define SHOP_MASK_BOTTOM {2734, 5.1537f, -5.6200f, 1.0000f, 0.8820f}-#define SHOP_ARROW_U {2735, 1.7000f, 1.8900f, 1.0000f, 1.0000f}-#define SHOP_ARROW_D {2735, 1.7000f, -0.3800f, -1.0000f, 1.0000f}-#define SHOP_SELECTOR {2736, 1.7300f, 0.7600f, 0.9332f, 1.0000f}-#define SHOP_CONFIRM_GEO {2737, 4.2800f, 0.3400f, 1.0000f, 1.0000f}-#define SHOP_POINTER_L {2738, 3.6119f, -2.0798f, 1.0000f, 1.0000f}-#define SHOP_POINTER_R {2738, 6.6249f, -2.0798f, -1.0000f, 1.0000f}+#define TXT_INV_HEART {{250, 251}, {252, 253}, {254, 255}, {252, 256}, {252, 257}, {258, 259}}+#define TXT_INV_VESSEL {{250, 251}, {260, 261}, {262, 263}, {260, 264}, {265, 266}}+#define TXT_INV_FIXED {{267, 268}, {269, 270}, {271, 272}, {273, 274}}+#define TXT_INV_EQ {{275, 276}, {277, 278}, {279, 280}, {281, 282}, {283, 284}, {285, 286}, {287, 288}}+#define TXT_INV_QUILL {289, 290, 291, 292}+#define TXT_INV_TRINKETS {{293, 294}, {295, 296}, {297, 298}, {299, 300}}+#define SHOP_BACKBOARD {2904, 4.9000f, -0.3200f, 0.8667f, 1.0000f}+#define SHOP_MASK_TOP {2905, 5.1230f, 4.8800f, 1.0000f, 0.9013f}+#define SHOP_MASK_BOTTOM {2906, 5.1537f, -5.6200f, 1.0000f, 0.8820f}+#define SHOP_ARROW_U {2907, 1.7000f, 1.8900f, 1.0000f, 1.0000f}+#define SHOP_ARROW_D {2907, 1.7000f, -0.3800f, -1.0000f, 1.0000f}+#define SHOP_SELECTOR {2908, 1.7300f, 0.7600f, 0.9332f, 1.0000f}+#define SHOP_CONFIRM_GEO {2909, 4.2800f, 0.3400f, 1.0000f, 1.0000f}+#define SHOP_POINTER_L {2910, 3.6119f, -2.0798f, 1.0000f, 1.0000f}+#define SHOP_POINTER_R {2910, 6.6249f, -2.0798f, -1.0000f, 1.0000f}#define SHOP_MASK_A {0, 0, 255, 255, 255, 255, 255, 254, 249, 230, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 73, 134, 178, 204, 226, 223, 0, 0, 0, 0, 0, 0}#define SHOP_CONFIRM_ITEM {5.0900f, 2.4700f}-#define TXT_KEY_BACK 300+#define TXT_KEY_BACK 302#define SHOP_BACKBOARD_A 0.8910f#define SHOP_BORDERS {{5.1437f, 3.6600f, 1.1244f, 1.0000f, CLIP_SHOPUI_SHOP_MENU_TOP_UP, CLIP_SHOPUI_SHOP_MENU_TOP_DOWN, 0.0000f}, {5.1937f, -5.7000f, 1.1338f, 1.0000f, CLIP_SHOPUI_SHOP_MENU_BOTTOM_UP, CLIP_SHOPUI_SHOP_MENU_BOTTOM_DOWN, 0.0000f}}#define SHOP_FIGUREHEADS {{5.1437f, 6.6400f, 1.0000f, 1.0000f, CLIP_SHOPUI_SHOP_FIGUREHEAD_SLY_UP, CLIP_SHOPUI_SHOP_FIGUREHEAD_SLY_DOWN, 0.3500f}, {5.1437f, 6.7400f, 1.0000f, 1.0000f, CLIP_SHOPUI_SHOP_FIGUREHEAD_MAPPERWIFE_UP, CLIP_SHOPUI_SHOP_FIGUREHEAD_MAPPERWIFE_DOWN, 0.3500f}, {5.1437f, 6.8300f, 1.0000f, 1.0000f, CLIP_SHOPUI_SHOP_FIGUREHEAD_SLUG_UP, CLIP_SHOPUI_SHOP_FIGUREHEAD_SLUG_DOWN, 0.3500f}}@@ -1198,7 +1272,7 @@#define SHOP_T_ACT_CONFIRM {8.2400f, -6.4868f, 1.8022f}#define SHOP_T_ACT_CANCEL {2.0402f, -6.4868f, 1.8022f}#define SHOP_DESC_DY 1.6100f-#define SHOP_PEG {2739, 5.5100f, 2.5800f, 1.0000f, 1.0000f}+#define SHOP_PEG {2911, 5.5100f, 2.5800f, 1.0000f, 1.0000f}#define SHOP_PEG_DX 0.7500f#define SHOP_PEGS_X {1.9100f, 1.5400f, 1.1500f, 0.8000f, 0.3300f, 0.0000f}#define SHOP_KEY_CONFIRM {9.0416f, -6.7556f}@@ -1209,24 +1283,24 @@#define SHOP_ROW_TOP 4.9000f#define SHOP_ROW_BOTTOM -5.2500f#define SHOP_ARROW_BOB 0.1500f-#define TXT_SHOP_CTRL_BUY 303-#define TXT_SHOP_CTRL_EXIT 304-#define TXT_SHOP_CTRL_CONFIRM 305-#define TXT_SHOP_CTRL_CANCEL 306-#define TXT_SHOP_SHOP_PURCHASE_CONFIRM 307-#define TXT_SHOP_SHOP_PURCHASE_COMPLETE 308-#define TXT_SHOP_CHARM_TXT_NOTCHCOST 309-#define TXT_SHOP_YES 310-#define TXT_SHOP_NO 311+#define TXT_SHOP_CTRL_BUY 305+#define TXT_SHOP_CTRL_EXIT 306+#define TXT_SHOP_CTRL_CONFIRM 307+#define TXT_SHOP_CTRL_CANCEL 308+#define TXT_SHOP_SHOP_PURCHASE_CONFIRM 309+#define TXT_SHOP_SHOP_PURCHASE_COMPLETE 310+#define TXT_SHOP_CHARM_TXT_NOTCHCOST 311+#define TXT_SHOP_YES 312+#define TXT_SHOP_NO 313#define SHOP_DESC_BOTTOM -5.0500f-#define SHOP_ITEMS {{2741, 0.5714f, 312, 313, 150, 1, 125, -1, 0, 0}, {2741, 0.5714f, 312, 314, 500, 1, 126, 125, 0, 0}, {2742, 0.5714f, 315, 316, 550, 3, 127, -1, 0, 0}, {2743, 0.5714f, 317, 318, 950, 10, 128, -1, 0, 0}, {2744, 0.5714f, 319, 320, 300, 2, 37, -1, 0, 1}, {2745, 0.5714f, 321, 322, 200, 2, 40, -1, 0, 4}, {2746, 0.5714f, 323, 324, 1800, 0, 119, -1, 0, 0}, {2747, 0.5714f, 325, 326, 60, 11, 129, -1, 0, 0}, {2748, 0.5714f, 327, 328, 220, 2, 38, -1, 0, 2}, {2749, 0.5714f, 329, 330, 120, 0, 2, -1, 0, 0}, {2750, 0.5714f, 331, 332, 40, 9, 130, 10, 0, 0}, {2750, 0.5714f, 333, 334, 80, 9, 131, 28, 0, 0}, {2750, 0.5714f, 335, 336, 100, 9, 178, 180, 0, 0}, {2751, 0.5714f, 337, 338, 100, 16, 133, -1, 0, 0}, {2752, 0.5714f, 339, 340, 100, 16, 134, -1, 0, 0}, {2753, 0.5714f, 341, 342, 100, 16, 135, -1, 0, 0}, {2754, 0.5714f, 343, 344, 100, 16, 137, 147, 0, 0}, {2755, 0.5714f, 345, 346, 100, 16, 136, -1, 0, 0}, {2756, 0.5714f, 347, 348, 100, 17, 139, -1, 0, 0}, {2757, 0.5714f, 349, 350, 100, 17, 140, -1, 0, 0}, {2758, 0.5714f, 351, 352, 100, 17, 141, 14, 0, 0}, {2759, 0.5714f, 353, 354, 210, 17, 142, 14, 0, 0}, {2760, 0.5714f, 355, 356, 250, 2, 44, -1, 0, 8}, {2761, 0.5714f, 357, 358, 300, 2, 54, -1, 0, 18}, {2762, 0.5714f, 359, 360, 120, 2, 50, -1, 0, 14}, {2763, 0.5714f, 361, 362, 220, 2, 55, -1, 0, 19}, {2764, 0.5714f, 363, 364, 800, 2, 43, -1, 0, 7}, {2765, 0.5714f, 365, 366, 120, 8, 143, -1, 5, 0}, {2765, 0.5714f, 365, 366, 500, 8, 144, -1, 10, 0}, {2765, 0.5714f, 365, 366, 900, 8, 145, -1, 18, 0}, {2765, 0.5714f, 365, 367, 1400, 8, 146, -1, 25, 0}}+#define SHOP_ITEMS {{2913, 0.5714f, 314, 315, 150, 1, 125, -1, 0, 0}, {2913, 0.5714f, 314, 316, 500, 1, 126, 125, 0, 0}, {2914, 0.5714f, 317, 318, 550, 3, 127, -1, 0, 0}, {2915, 0.5714f, 319, 320, 950, 10, 128, -1, 0, 0}, {2916, 0.5714f, 321, 322, 300, 2, 37, -1, 0, 1}, {2917, 0.5714f, 323, 324, 200, 2, 40, -1, 0, 4}, {2918, 0.5714f, 325, 326, 1800, 0, 119, -1, 0, 0}, {2919, 0.5714f, 327, 328, 60, 11, 129, -1, 0, 0}, {2920, 0.5714f, 329, 330, 220, 2, 38, -1, 0, 2}, {2921, 0.5714f, 331, 332, 120, 0, 2, -1, 0, 0}, {2922, 0.5714f, 333, 334, 40, 9, 130, 10, 0, 0}, {2922, 0.5714f, 335, 336, 80, 9, 131, 28, 0, 0}, {2922, 0.5714f, 337, 338, 100, 9, 178, 180, 0, 0}, {2923, 0.5714f, 339, 340, 100, 16, 133, -1, 0, 0}, {2924, 0.5714f, 341, 342, 100, 16, 134, -1, 0, 0}, {2925, 0.5714f, 343, 344, 100, 16, 135, -1, 0, 0}, {2926, 0.5714f, 345, 346, 100, 16, 137, 147, 0, 0}, {2927, 0.5714f, 347, 348, 100, 16, 136, -1, 0, 0}, {2928, 0.5714f, 349, 350, 100, 17, 139, -1, 0, 0}, {2929, 0.5714f, 351, 352, 100, 17, 140, -1, 0, 0}, {2930, 0.5714f, 353, 354, 100, 17, 141, 14, 0, 0}, {2931, 0.5714f, 355, 356, 210, 17, 142, 14, 0, 0}, {2932, 0.5714f, 357, 358, 250, 2, 44, -1, 0, 8}, {2933, 0.5714f, 359, 360, 300, 2, 54, -1, 0, 18}, {2934, 0.5714f, 361, 362, 120, 2, 50, -1, 0, 14}, {2935, 0.5714f, 363, 364, 220, 2, 55, -1, 0, 19}, {2936, 0.5714f, 365, 366, 800, 2, 43, -1, 0, 7}, {2937, 0.5714f, 367, 368, 120, 8, 143, -1, 5, 0}, {2937, 0.5714f, 367, 368, 500, 8, 144, -1, 10, 0}, {2937, 0.5714f, 367, 368, 900, 8, 145, -1, 18, 0}, {2937, 0.5714f, 367, 369, 1400, 8, 146, -1, 25, 0}}#define SHOP_FIRST {0, 8, 22, 31}-#define SHOP_ROW_GEO {2740, 1.4551f, 0.0000f, 1.0000f, 1.0000f}+#define SHOP_ROW_GEO {2912, 1.4551f, 0.0000f, 1.0000f, 1.0000f}#define SHOP_ROW_COST {1.8423f, 0.2885f}#define SHOP_ACTIVE_RGB {255, 255, 255}#define SHOP_INACTIVE_RGB {141, 141, 141}#define SHOP_ROOMS {"Room_shop", "Room_mapper", "Room_Charm_Shop"}-#define SHOP_NOSTOCK {369, 370, 371}+#define SHOP_NOSTOCK {371, 372, 373}#define SHOP_TITLES {TITLE_SLY, TITLE_ISELDA, TITLE_CHARM_SLUG}#define SHOP_N 3#define COLLECT_FLEUR {0.0000f, 0.0000f, 0.0000f, 1.0000f}@@ -1237,83 +1311,83 @@#define STAG_N 4#define STAG_AT {0.3000f, 0.3000f}#define STAG_K 1.2646f-#define STAG_BACKING {2766, -0.4427f, 0.0000f, 1.0000f, 0.6408f}+#define STAG_BACKING {2938, -0.4427f, 0.0000f, 1.0000f, 0.6408f}#define STAG_BACKING_A 0.9020f-#define STAG_PIECES {{2767, 3.6420f, -0.6829f, 1.0000f, 1.0000f}, {2768, 2.8499f, 2.2363f, 1.0000f, 1.0000f}, {2769, 5.8131f, 2.5590f, 1.0000f, 1.0000f}, {2770, 0.4147f, 1.5909f, 1.0000f, 1.0000f}, {2771, 3.2899f, -0.9763f, 1.0000f, 1.0000f}}+#define STAG_PIECES {{2939, 3.6420f, -0.6829f, 1.0000f, 1.0000f}, {2940, 2.8499f, 2.2363f, 1.0000f, 1.0000f}, {2941, 5.8131f, 2.5590f, 1.0000f, 1.0000f}, {2942, 0.4147f, 1.5909f, 1.0000f, 1.0000f}, {2943, 3.2899f, -0.9763f, 1.0000f, 1.0000f}}#define STAG_OPENED {-1, 155, 156, 171}#define STAG_MARKS {{2.9379f, 3.7471f}, {4.8742f, 2.0690f}, {-0.4360f, 2.7790f}, {3.5687f, -0.9763f}}#define STAG_SELECTOR {0.0000f, 0.0000f, 1.1797f, 1.2092f}-#define STAG_MAP_KNIGHT {2772, 0.0000f, 0.0000f, 1.0000f, 1.0000f}-#define STAG_MAP_SHADOW {2773, 0.0110f, -0.0100f, 1.0000f, 0.9227f}+#define STAG_MAP_KNIGHT {2944, 0.0000f, 0.0000f, 1.0000f, 1.0000f}+#define STAG_MAP_SHADOW {2945, 0.0110f, -0.0100f, 1.0000f, 0.9227f}#define STAG_T_ROW {-7.5992f, 4.9095f, 5.8145f}#define STAG_ROW_DY 1.0000f-#define STAG_POINTER_R {2774, 2.8680f, 0.6180f, -1.0000f, 1.0000f}-#define STAG_POINTER_L {2774, -2.8680f, 0.6180f, 1.0000f, 1.0000f}+#define STAG_POINTER_R {2946, 2.8680f, 0.6180f, -1.0000f, 1.0000f}+#define STAG_POINTER_L {2946, -2.8680f, 0.6180f, 1.0000f, 1.0000f}#define STAG_ROW {-7.5992f, 3.9576f}-#define STAG_LIST_KNIGHT {2772, -10.5102f, 4.6056f, 1.0000f, 1.0000f}-#define STAG_DIVIDER {2775, -7.6003f, 5.2734f, -1.0000f, -0.8696f}+#define STAG_LIST_KNIGHT {2944, -10.5102f, 4.6056f, 1.0000f, 1.0000f}+#define STAG_DIVIDER {2947, -7.6003f, 5.2734f, -1.0000f, -0.8696f}#define STAG_T_STATIONS {-7.5992f, 6.0194f, 5.8145f}-#define TXT_STAG_STATIONS 372-#define TXT_STAG_NAMES {373, 331, 333, 374}+#define TXT_STAG_STATIONS 374+#define TXT_STAG_NAMES {375, 333, 335, 376}#define STAG_NAMES_STR {29, 28, 32, 31}#define STAG_BORDER_TOP {-0.0963f, 7.0185f, 0.9784f, 1.0028f, CLIP_STAGUI_STAG_BORDER_TOP_UP, CLIP_STAGUI_STAG_BORDER_TOP_DOWN, 0}#define STAG_BORDER_BOTTOM {-0.0638f, -6.5632f, 0.9165f, 0.9394f, CLIP_STAGUI_STAG_BORDER_BOTTOM_UP, CLIP_STAGUI_STAG_BORDER_BOTTOM_DOWN, 0}#define STAG_T_ACT_CONFIRM {11.1713f, -4.5306f, 15.3500f}#define STAG_KEY_CONFIRM {11.7464f, -4.7993f}-#define TXT_STAG_CTRL_TRAVEL 375+#define TXT_STAG_CTRL_TRAVEL 377#define STAG_T_ACT_CANCEL {11.1713f, -5.3525f, 15.3500f}#define STAG_KEY_CANCEL {11.7464f, -5.6213f}-#define TXT_STAG_CTRL_CANCEL 306+#define TXT_STAG_CTRL_CANCEL 308#define STAG_SCENES_STR {42, 41, 43, 44}#define STAG_SCENES_ROOM {32772, 32787, 32804, 6}-#define MAP_AREAS {{0, 2, -1, 4.0700f, -11.6200f, 379, 0x0u}, {2, 18, 130, -0.0400f, -7.8800f, 380, 0x20u}, {20, 12, 131, 16.3100f, -7.8700f, 382, 0x0u}}-#define MAP_ROOMS {{0, 255, 2776, 2777, -1.9230f, 7.6490f, 4.0800f, 2.1400f, 0xB6B6B6, 1}, {0, 255, 2783, 2784, -5.4430f, 7.4690f, 2.9600f, 1.4800f, 0x636363, 1}, {1, 127, 2786, -1, 0.8660f, 4.8850f, 1.8700f, 0.4300f, 0xB5DDFB, 0}, {1, 255, 2787, 2788, 3.3290f, 6.5270f, 0.8900f, 0.3800f, 0xB5DDFB, 1}, {1, 255, 2789, 2790, 0.9410f, 4.0880f, 1.3600f, 0.3900f, 0xB5DDFB, 1}, {1, 255, 2791, 2792, 1.6660f, 6.5240f, 1.3000f, 0.3400f, 0xB5DDFB, 1}, {1, 255, 2793, 2794, -2.2270f, 4.6390f, 0.6800f, 0.8600f, 0xB5DDFB, 1}, {1, 255, 2795, 2796, 0.8660f, 4.8850f, 1.8584f, 0.5000f, 0xB5DDFB, 1}, {1, 255, 2797, 2798, 2.0720f, 3.8620f, 0.9500f, 0.7900f, 0xB5DDFB, 1}, {1, 38, 2799, -1, -2.2000f, 3.7130f, 0.6600f, 0.7900f, 0xB5DDFB, 0}, {1, 255, 2800, 2801, 1.6240f, 5.9190f, 1.3800f, 0.5200f, 0xB5DDFB, 1}, {1, 255, 2802, 2803, 2.6280f, 6.1870f, 0.7000f, 1.0300f, 0xB5DDFB, 1}, {1, 255, 2804, 2805, -0.3640f, 4.0580f, 1.2500f, 0.3500f, 0xB5DDFB, 1}, {1, 255, 2806, 2807, -3.1500f, 4.3130f, 1.1700f, 0.3500f, 0xB5DDFB, 1}, {1, 255, 2808, 2809, -0.5860f, 5.0990f, 1.1900f, 0.8800f, 0xB5DDFB, 1}, {1, 255, 2810, 2811, -1.4530f, 4.2330f, 0.9600f, 0.6900f, 0xB5DDFB, 1}, {1, 255, 2812, 2813, -2.2170f, 5.8440f, 0.6800f, 1.5700f, 0xB5DDFB, 1}, {1, 255, 2814, 2815, 2.0240f, 4.9490f, 0.5900f, 1.4673f, 0xB5DDFB, 1}, {1, 255, 2816, 2817, 0.3470f, 6.6100f, 1.3800f, 0.5000f, 0xB5DDFB, 1}, {1, 255, 2818, 2819, -1.1130f, 6.6140f, 1.5800f, 0.7500f, 0xB5DDFB, 1}, {2, 255, 2820, 2821, -6.5180f, 4.0350f, 1.0100f, 0.8900f, 0xCFFFC3, 1}, {2, 255, 2822, 2823, -10.8980f, 6.4740f, 1.3600f, 0.7100f, 0xCFFFC3, 1}, {2, 255, 2824, 2825, -11.2830f, 5.0920f, 0.5900f, 2.1300f, 0xCFFFC3, 1}, {2, 255, 2826, 2827, -11.8520f, 3.8320f, 1.6500f, 0.4800f, 0xCFFFC3, 1}, {2, 255, 2828, 2829, -12.2580f, 6.4100f, 1.3800f, 0.8200f, 0xCFFFC3, 1}, {2, 255, 2830, 2831, -7.6750f, 3.7830f, 1.3400f, 0.4200f, 0xCFFFC3, 1}, {2, 255, 2832, 2833, -9.6830f, 3.8190f, 2.6800f, 0.4600f, 0xCFFFC3, 1}, {2, 255, 2834, 2835, -6.8080f, 4.7040f, 2.3200f, 0.5100f, 0xCFFFC3, 1}, {2, 255, 2836, 2837, -13.6530f, 6.1350f, 1.4100f, 1.0200f, 0xCFFFC3, 1}, {2, 255, 2838, 2839, -8.2930f, 5.2090f, 0.6700f, 1.2200f, 0xCFFFC3, 1}, {2, 255, 2840, 2841, -7.6430f, 5.9550f, 0.6700f, 0.7500f, 0xCFFFC3, 1}, {2, 255, 2842, 2843, -6.1000f, 5.8290f, 2.4400f, 0.6700f, 0xCFFFC3, 1}}-#define MAP_PINS {{0, 0, 2778, -2.0390f, 7.7500f, 133, -1}, {0, 0, 2779, -1.6430f, 7.7500f, 137, -1}, {0, 0, 2780, -2.4700f, 7.7500f, 135, 122}, {0, 0, 2781, -1.2540f, 7.7600f, 135, 123}, {1, 1, 2785, -6.2100f, 7.6800f, 134, -1}, {21, 1, 2785, -10.9970f, 6.6240f, 134, -1}, {22, 0, 2778, -11.2580f, 4.9690f, 133, -1}, {30, 0, 2778, -7.6610f, 6.0700f, 133, -1}}-#define MAP_NEXT {{0, 2782, -1.0730f, 6.4850f, 180.0000f, 378, -1.0730f, 6.1870f, 1, -1}, {19, 2782, -1.0730f, 7.2500f, 0.0000f, 377, -1.0930f, 7.9120f, 1, -1}, {31, 2782, -4.5300f, 5.8450f, -90.0000f, 378, -4.1075f, 6.0470f, 0, 6}}-#define MAP_NAMES {{0, -1, 376, -0.2000f, 8.3901f, 0xFFFFFF, 1, 0}, {0, -1, 377, 3.3200f, 8.4801f, 0xFFFFFF, 1, 1}, {1, -1, 378, 6.7700f, 3.3701f, 0xB5DCFB, 1, 1}, {2, -1, 381, -5.0993f, 5.4501f, 0xCFFFC3, 0, 1}}+#define MAP_AREAS {{0, 2, -1, 4.0700f, -11.6200f, 381, 0x0u}, {2, 18, 130, -0.0400f, -7.8800f, 382, 0x20u}, {20, 12, 131, 16.3100f, -7.8700f, 384, 0x0u}}+#define MAP_ROOMS {{0, 255, 2948, 2949, -1.9230f, 7.6490f, 4.0800f, 2.1400f, 0xB6B6B6, 1}, {0, 255, 2955, 2956, -5.4430f, 7.4690f, 2.9600f, 1.4800f, 0x636363, 1}, {1, 127, 2958, -1, 0.8660f, 4.8850f, 1.8700f, 0.4300f, 0xB5DDFB, 0}, {1, 255, 2959, 2960, 3.3290f, 6.5270f, 0.8900f, 0.3800f, 0xB5DDFB, 1}, {1, 255, 2961, 2962, 0.9410f, 4.0880f, 1.3600f, 0.3900f, 0xB5DDFB, 1}, {1, 255, 2963, 2964, 1.6660f, 6.5240f, 1.3000f, 0.3400f, 0xB5DDFB, 1}, {1, 255, 2965, 2966, -2.2270f, 4.6390f, 0.6800f, 0.8600f, 0xB5DDFB, 1}, {1, 255, 2967, 2968, 0.8660f, 4.8850f, 1.8584f, 0.5000f, 0xB5DDFB, 1}, {1, 255, 2969, 2970, 2.0720f, 3.8620f, 0.9500f, 0.7900f, 0xB5DDFB, 1}, {1, 38, 2971, -1, -2.2000f, 3.7130f, 0.6600f, 0.7900f, 0xB5DDFB, 0}, {1, 255, 2972, 2973, 1.6240f, 5.9190f, 1.3800f, 0.5200f, 0xB5DDFB, 1}, {1, 255, 2974, 2975, 2.6280f, 6.1870f, 0.7000f, 1.0300f, 0xB5DDFB, 1}, {1, 255, 2976, 2977, -0.3640f, 4.0580f, 1.2500f, 0.3500f, 0xB5DDFB, 1}, {1, 255, 2978, 2979, -3.1500f, 4.3130f, 1.1700f, 0.3500f, 0xB5DDFB, 1}, {1, 255, 2980, 2981, -0.5860f, 5.0990f, 1.1900f, 0.8800f, 0xB5DDFB, 1}, {1, 255, 2982, 2983, -1.4530f, 4.2330f, 0.9600f, 0.6900f, 0xB5DDFB, 1}, {1, 255, 2984, 2985, -2.2170f, 5.8440f, 0.6800f, 1.5700f, 0xB5DDFB, 1}, {1, 255, 2986, 2987, 2.0240f, 4.9490f, 0.5900f, 1.4673f, 0xB5DDFB, 1}, {1, 255, 2988, 2989, 0.3470f, 6.6100f, 1.3800f, 0.5000f, 0xB5DDFB, 1}, {1, 255, 2990, 2991, -1.1130f, 6.6140f, 1.5800f, 0.7500f, 0xB5DDFB, 1}, {2, 255, 2992, 2993, -6.5180f, 4.0350f, 1.0100f, 0.8900f, 0xCFFFC3, 1}, {2, 255, 2994, 2995, -10.8980f, 6.4740f, 1.3600f, 0.7100f, 0xCFFFC3, 1}, {2, 255, 2996, 2997, -11.2830f, 5.0920f, 0.5900f, 2.1300f, 0xCFFFC3, 1}, {2, 255, 2998, 2999, -11.8520f, 3.8320f, 1.6500f, 0.4800f, 0xCFFFC3, 1}, {2, 255, 3000, 3001, -12.2580f, 6.4100f, 1.3800f, 0.8200f, 0xCFFFC3, 1}, {2, 255, 3002, 3003, -7.6750f, 3.7830f, 1.3400f, 0.4200f, 0xCFFFC3, 1}, {2, 255, 3004, 3005, -9.6830f, 3.8190f, 2.6800f, 0.4600f, 0xCFFFC3, 1}, {2, 255, 3006, 3007, -6.8080f, 4.7040f, 2.3200f, 0.5100f, 0xCFFFC3, 1}, {2, 255, 3008, 3009, -13.6530f, 6.1350f, 1.4100f, 1.0200f, 0xCFFFC3, 1}, {2, 255, 3010, 3011, -8.2930f, 5.2090f, 0.6700f, 1.2200f, 0xCFFFC3, 1}, {2, 255, 3012, 3013, -7.6430f, 5.9550f, 0.6700f, 0.7500f, 0xCFFFC3, 1}, {2, 255, 3014, 3015, -6.1000f, 5.8290f, 2.4400f, 0.6700f, 0xCFFFC3, 1}}+#define MAP_PINS {{0, 0, 2950, -2.0390f, 7.7500f, 133, -1}, {0, 0, 2951, -1.6430f, 7.7500f, 137, -1}, {0, 0, 2952, -2.4700f, 7.7500f, 135, 122}, {0, 0, 2953, -1.2540f, 7.7600f, 135, 123}, {1, 1, 2957, -6.2100f, 7.6800f, 134, -1}, {21, 1, 2957, -10.9970f, 6.6240f, 134, -1}, {22, 0, 2950, -11.2580f, 4.9690f, 133, -1}, {30, 0, 2950, -7.6610f, 6.0700f, 133, -1}}+#define MAP_NEXT {{0, 2954, -1.0730f, 6.4850f, 180.0000f, 380, -1.0730f, 6.1870f, 1, -1}, {19, 2954, -1.0730f, 7.2500f, 0.0000f, 379, -1.0930f, 7.9120f, 1, -1}, {31, 2954, -4.5300f, 5.8450f, -90.0000f, 380, -4.1075f, 6.0470f, 0, 6}}+#define MAP_NAMES {{0, -1, 378, -0.2000f, 8.3901f, 0xFFFFFF, 1, 0}, {0, -1, 379, 3.3200f, 8.4801f, 0xFFFFFF, 1, 1}, {1, -1, 380, 6.7700f, 3.3701f, 0xB5DCFB, 1, 1}, {2, -1, 383, -5.0993f, 5.4501f, 0xCFFFC3, 0, 1}}#define MAP_QUICK_K 1.5500f-#define MAP_SHADE {{2844, 0.0055f, -0.0110f, 178}, {2845, 0.0000f, 0.0000f, 255}}-#define MAP_MARKERS {2846, 2847, 2848, 2849}+#define MAP_SHADE {{3016, 0.0055f, -0.0110f, 178}, {3017, 0.0000f, 0.0000f, 255}}+#define MAP_MARKERS {3018, 3019, 3020, 3021}#define MAP_COMPASS_K 0.7000f#define MAP_BG_A 0.4438f#define MAP_TITLE {0.0000f, 7.5363f}-#define MAP_TITLE_BACK {2850, 0.2520f, 7.1073f, 1.0000f, 0.6696f, 246}-#define MAP_NO_MAP {2851, 0.0000f, 0.9400f}-#define MAP_NO_MAP_MSG {383, -0.0600f, -1.2932f}-#define MAP_MSG {-1.2900f, -6.8300f, 0.0000f, 0.0420f, 0.9865f, -0.0210f, 384, 2852, 1.9740f, -0.0840f, 1.0000f, 0.6931f, 179}+#define MAP_TITLE_BACK {3022, 0.2520f, 7.1073f, 1.0000f, 0.6696f, 246}+#define MAP_NO_MAP {3023, 0.0000f, 0.9400f}+#define MAP_NO_MAP_MSG {385, -0.0600f, -1.2932f}+#define MAP_MSG {-1.2900f, -6.8300f, 0.0000f, 0.0420f, 0.9865f, -0.0210f, 386, 3024, 1.9740f, -0.0840f, 1.0000f, 0.6931f, 179}#define MAP_MSG_K 0.7000f#define FIRSTMAP_BG_A 0.6410f-#define FIRSTMAP_TEXTS {{385, 0.0000f, 5.0305f}, {135, 0.0000f, -0.8796f}, {386, 0.0000f, -3.2895f}, {387, 0.0000f, -4.6996f}}-#define FIRSTMAP_PIECES {{2853, 0.0000f, 2.1300f, 1.0000f, 1.0000f}, {2854, 0.0000f, 0.0200f, 1.0000f, 0.0771f}, {2855, 0.0000f, -6.4000f, 1.0000f, 1.0000f}}-#define FIRSTMAP_KEY {388, 0.0900f, -2.3200f}-#define MAP_WIDE {{{2856, 3.0400f, -6.6800f, 1.0000f, 1.0000f}, 389, {8.7184f, -6.2919f, 11.0476f}, 4.0000f, -8.6420f, 3.3800f, -7.0700f, {1000.0000f, -1000.0000f, 1000.0000f, -1000.0000f}}, {{2857, 4.2300f, -8.2600f, 1.0000f, 1.0000f}, 390, {9.9990f, -7.8578f, 11.7784f}, -0.0400f, -7.5800f, 3.0300f, -8.2300f, {1000.0000f, -1000.0000f, 1000.0000f, -1000.0000f}}, {{2858, -0.6100f, -7.9700f, 1.0000f, 1.0000f}, 391, {5.6452f, -7.7738f, 11.8448f}, 16.4200f, -7.3200f, 0.4000f, -8.5800f, {1000.0000f, 17.2600f, 1000.0000f, -6.2200f}}}+#define FIRSTMAP_TEXTS {{387, 0.0000f, 5.0305f}, {137, 0.0000f, -0.8796f}, {388, 0.0000f, -3.2895f}, {389, 0.0000f, -4.6996f}}+#define FIRSTMAP_PIECES {{3025, 0.0000f, 2.1300f, 1.0000f, 1.0000f}, {3026, 0.0000f, 0.0200f, 1.0000f, 0.0771f}, {3027, 0.0000f, -6.4000f, 1.0000f, 1.0000f}}+#define FIRSTMAP_KEY {390, 0.0900f, -2.3200f}+#define MAP_WIDE {{{3028, 3.0400f, -6.6800f, 1.0000f, 1.0000f}, 391, {8.7184f, -6.2919f, 11.0476f}, 4.0000f, -8.6420f, 3.3800f, -7.0700f, {1000.0000f, -1000.0000f, 1000.0000f, -1000.0000f}}, {{3029, 4.2300f, -8.2600f, 1.0000f, 1.0000f}, 392, {9.9990f, -7.8578f, 11.7784f}, -0.0400f, -7.5800f, 3.0300f, -8.2300f, {1000.0000f, -1000.0000f, 1000.0000f, -1000.0000f}}, {{3030, -0.6100f, -7.9700f, 1.0000f, 1.0000f}, 393, {5.6452f, -7.7738f, 11.8448f}, 16.4200f, -7.3200f, 0.4000f, -8.5800f, {1000.0000f, 17.2600f, 1000.0000f, -6.2200f}}}#define MAP_WIDE_GREY 0x5C#define MAP_WIDE_NAME_GREY 0x5B#define MAP_WIDE_COMPASS_K 0.8700f#define MAP_ZOOM {0.2800f, -2.8000f, 0.4360f, 1.3000f}#define MAP_PAN {-1.4400f, 4.5500f, -8.6420f, -5.5800f}#define MAP_PAN_SPEED 8.0000f-#define MAP_PAN_ARROWS {{2859, 3.9700f, -2.1900f, 1.0f, 0.0000f}, {2859, 4.0400f, -13.4900f, 1.0f, 180.0000f}, {2859, -9.0000f, -7.1700f, 1.0f, 90.0000f}, {2859, 17.1900f, -7.1700f, 1.0f, -90.0000f}}-#define MAP_ACT_CONFIRM {{2860, 15.3897f, -13.3139f, 1.0000f, 0.8889f}, {16.9008f, -13.2878f}, {16.1269f, -13.0221f, 15.3500f}, {392, 393, 393}}-#define MAP_ACT_MARKER {{2860, -6.9500f, -13.3138f, 1.0000f, 0.8889f}, {-8.5394f, -13.2877f}, {-7.7259f, -13.0223f, 7.6740f}, {394, 395, 396}}-#define MAP_ACT_CANCEL {{2860, 15.3897f, -13.3138f, 1.0000f, 0.8889f}, {16.9008f, -13.2877f}, {16.1259f, -13.0223f, 15.3480f}, {306, 306, 306}}-#define MAP_ACT_CHANGE {{2860, -6.9500f, -12.0238f, 1.0000f, 0.8889f}, {-8.5394f, -11.9977f}, {-7.7259f, -11.7323f, 7.6740f}, {397, 397, 397}}-#define MAP_ACT_KEY {{2860, 15.3897f, -12.2039f, 1.0000f, 0.8889f}, {16.9008f, -12.1778f}, {16.3265f, -11.9122f, 15.3500f}, {398, 399, 400}}-#define MAP_KEY_BB {2861, 13.6200f, 3.4200f, 0.3781f, 1.0000f}+#define MAP_PAN_ARROWS {{3031, 3.9700f, -2.1900f, 1.0f, 0.0000f}, {3031, 4.0400f, -13.4900f, 1.0f, 180.0000f}, {3031, -9.0000f, -7.1700f, 1.0f, 90.0000f}, {3031, 17.1900f, -7.1700f, 1.0f, -90.0000f}}+#define MAP_ACT_CONFIRM {{3032, 15.3897f, -13.3139f, 1.0000f, 0.8889f}, {16.9008f, -13.2878f}, {16.1269f, -13.0221f, 15.3500f}, {394, 395, 395}}+#define MAP_ACT_MARKER {{3032, -6.9500f, -13.3138f, 1.0000f, 0.8889f}, {-8.5394f, -13.2877f}, {-7.7259f, -13.0223f, 7.6740f}, {396, 397, 398}}+#define MAP_ACT_CANCEL {{3032, 15.3897f, -13.3138f, 1.0000f, 0.8889f}, {16.9008f, -13.2877f}, {16.1259f, -13.0223f, 15.3480f}, {308, 308, 308}}+#define MAP_ACT_CHANGE {{3032, -6.9500f, -12.0238f, 1.0000f, 0.8889f}, {-8.5394f, -11.9977f}, {-7.7259f, -11.7323f, 7.6740f}, {399, 399, 399}}+#define MAP_ACT_KEY {{3032, 15.3897f, -12.2039f, 1.0000f, 0.8889f}, {16.9008f, -12.1778f}, {16.3265f, -11.9122f, 15.3500f}, {400, 401, 402}}+#define MAP_KEY_BB {3033, 13.6200f, 3.4200f, 0.3781f, 1.0000f}#define MAP_KEY_STEP -0.8250f-#define MAP_KEY_ROWS {{{2862, 11.8600f, -1.7400f, 1.0000f, 1.0000f}, 401, {12.7550f, -1.5413f, 15.3500f}}, {{2863, 11.8600f, -1.7400f, 1.0000f, 1.0000f}, 402, {12.7550f, -1.5413f, 15.3500f}}, {{2864, 11.7720f, -1.7460f, 1.0000f, 1.0000f}, 403, {12.7550f, -1.5413f, 15.3500f}}, {{2865, 11.8600f, -1.7400f, 1.0000f, 1.0000f}, 404, {12.7550f, -1.5413f, 15.3500f}}, {{2866, 11.8600f, -1.7400f, 1.0000f, 1.0000f}, 405, {12.7550f, -1.5413f, 15.3500f}}}+#define MAP_KEY_ROWS {{{3034, 11.8600f, -1.7400f, 1.0000f, 1.0000f}, 403, {12.7550f, -1.5413f, 15.3500f}}, {{3035, 11.8600f, -1.7400f, 1.0000f, 1.0000f}, 404, {12.7550f, -1.5413f, 15.3500f}}, {{3036, 11.7720f, -1.7460f, 1.0000f, 1.0000f}, 405, {12.7550f, -1.5413f, 15.3500f}}, {{3037, 11.8600f, -1.7400f, 1.0000f, 1.0000f}, 406, {12.7550f, -1.5413f, 15.3500f}}, {{3038, 11.8600f, -1.7400f, 1.0000f, 1.0000f}, 407, {12.7550f, -1.5413f, 15.3500f}}}#define MAP_KEY_FLAGS {133, 134, 135, 136, 137}#define MAP_KEY_N 5-#define MAP_MM_PIECES {{2867, 4.0500f, -12.3700f, 1.0000f, 1.0000f}, {2868, 4.0100f, -12.9500f, 0.7510f, 1.0000f}, {2869, 1.9000f, -12.3700f, 1.0000f, 1.0000f}, {2870, 1.9000f, -12.3700f, 1.0000f, 1.0000f}}-#define MAP_MM_MARKERS {2871, 2872, 2873, 2874}+#define MAP_MM_PIECES {{3039, 4.0500f, -12.3700f, 1.0000f, 1.0000f}, {3040, 4.0100f, -12.9500f, 0.7510f, 1.0000f}, {3041, 1.9000f, -12.3700f, 1.0000f, 1.0000f}, {3042, 1.9000f, -12.3700f, 1.0000f, 1.0000f}}+#define MAP_MM_MARKERS {3043, 3044, 3045, 3046}#define MAP_MM_AMOUNT {0.0000f, -0.6416f, 1.0614f}#define MAP_MM_ROW {0.0000f, 0.4400f, 1.9000f, 1.4333f, -12.8200f}-#define MAP_MM_PLACE {2875, 4.0500f, -7.9900f, -4.9500f, 13.0500f, -10.5500f, -3.5500f, 7.0000f, 20.0000f}+#define MAP_MM_PLACE {3047, 4.0500f, -7.9900f, -4.9500f, 13.0500f, -10.5500f, -3.5500f, 7.0000f, 20.0000f}#define MAP_MM_RADII 0.8900f#define MAP_MM_UI_PAUSE 0.2000f-#define TXT_KEY_SHIFT 406+#define TXT_KEY_SHIFT 408#define ROOM_ZONES {5, 9, 9, 9, 9, 24, 24, 9, 9, 9, 9, 9, 9, 9}#define MSG_FIREBALL 0#define MSG_DASH 1#define MSG_WALLJUMP 2-#define SEMI_PERSIST {13, 14, 15, 16, 22, 23, 24, 25, 26, 36, 45, 86}+#define SEMI_PERSIST {13, 14, 15, 16, 22, 23, 24, 25, 26, 36, 45, 54, 55, 56, 65, 66, 67, 68, 73, 74, 87, 96, 97, 98, 99, 108, 109}diff --git a/games/hollowknight/src/enemy.c b/games/hollowknight/src/enemy.cindex 74a230d3..99eaf3da 100644--- a/games/hollowknight/src/enemy.c+++ b/games/hollowknight/src/enemy.c@@ -20,7 +20,7 @@ enum {EF_FK, EF_FKHEAD, EF_GFLY, EF_HATCHER, EF_HATCHLING, EF_SLUG, EF_MOSSWALKER, EF_PIGEON, EF_PLANTTRAP, EF_SHAKER,EF_MOSQUITO, EF_FATFLY, EF_MOSSCHARGER, EF_MOSSKNIGHT, EF_HORNET, EF_MENDER,/* (Hollow Knight: Fungal Wastes: HK_FW) */- EF_FUNGLING, EF_FUNGOON, EF_AMBLOOM, EF_SHRUMELING, EF_OGRE, EF_SPORG+ EF_FUNGLING, EF_FUNGOON, EF_AMBLOOM, EF_SHRUMELING, EF_OGRE, EF_SPORG, EF_MANTIS, EF_MANTISFLYER, EF_MANTISLORD};enum { R_IDLE, R_TURN, R_WALK, R_A1, R_A2, R_A3, R_A4, R_A5, R_A6, R_A7, R_A8, R_DEATH_AIR, R_DEATH_LAND, NUM_ROLES };typedef struct {@@ -413,6 +413,11 @@ static void death_shake(const Enemy *e) {static void shade_killed(Enemy *e);static void blocker_die(Enemy *e);static void gfly_die(Enemy *e);+#ifdef HK_FW+static void mlord_die(Enemy *e);+static void mlord_fixed(Enemy *e);+static void mlord_corpse_update(Enemy *e);+#endifstatic void hatchling_reset(Enemy *e);static void hatcher_corpse_smash(const Enemy *e);static void hornet_corpse_start(Enemy *e);@@ -438,6 +443,14 @@ static void enemy_die(Enemy *e, float direction, bool has_direction) {if (FSM(e) == EF_MENDER) g_pd.mender_state = 2; /* (Killed) */if (FSM(e) == EF_GFLY) gfly_die(e);else if (FSM(e) == EF_HORNET) hornet_corpse_start(e);+#ifdef HK_FW+ else if (FSM(e) == EF_MANTISLORD) {+ mlord_die(e);+ death_shake(e);+ FREEZE_MOMENT_1();+ return;+ }+#endifelse if (FSM(e) == EF_HATCHLING) {/* (deathReset: back to its cage) */death_shake(e);@@ -6572,6 +6585,12 @@ void enemies_fixed(void) {continue;}if (e->mode == EM_ALIVE && (FSM(e) == EF_FKHEAD || (e->flags & 128))) continue; /* (the head: its body's; off) */+#ifdef HK_FW+ if (FSM(e) == EF_MANTISLORD) {+ if (e->mode == EM_ALIVE) mlord_fixed(e); /* (kinematic; its corpse stays) */+ continue;+ }+#endifif (e->mode == EM_ALIVE && ((FSM(e) == EF_MOSSWALKER && e->b1) || FSM(e) == EF_PIGEON || FSM(e) == EF_PLANTTRAP || FSM(e) == EF_SPORG)) {/* (a kinematic body, a trigger, frames' colliders: nothing stops them) */recoil_fixed(e);@@ -6727,6 +6746,10 @@ void enemies_update(void) {shade_update(e);else if (FSM(e) == EF_HORNET)hornet_corpse_update(e);+#ifdef HK_FW+ else if (FSM(e) == EF_MANTISLORD)+ mlord_corpse_update(e);+#endifelse if (FSM(e) == EF_BLOCKER)blocker_corpse(e);else if (e->st == CS_DEATH_ANIM && !e->anim.playing)diff --git a/games/hollowknight/src/enemy_fw.c b/games/hollowknight/src/enemy_fw.cindex b4a77313..fa00aa40 100644--- a/games/hollowknight/src/enemy_fw.c+++ b/games/hollowknight/src/enemy_fw.c@@ -826,29 +826,1019 @@ static void sporg_update(Enemy *e) {}}++/* ---------------------------------------------------------------- the Mantis' ranges: the Knight in one of its children's+ * boxes (or circles), sized with it, and in sight from it (their FSMs' raycast: no terrain between) */+static bool hero_in_sight_of(const Enemy *e, const char *name) {+ const Ent *r = range_named(e, name);+ if (!r || g_hero.hidden) return false;+ float k = fabsf(e->sx), cx = e->body.x + r->x0 * e->sx, cy = e->body.y + r->y0 * k;+ float kx = g_hero.body.x + g_hero.body.ox, ky = g_hero.body.y + g_hero.body.oy;+ if (r->y1 < 0) { /* (a circle: the Knight's box meets it) */+ float qx = kx < cx - g_hero.body.hx ? kx + g_hero.body.hx : kx > cx + g_hero.body.hx ? kx - g_hero.body.hx : cx;+ float qy = ky < cy - g_hero.body.hy ? ky + g_hero.body.hy : ky > cy + g_hero.body.hy ? ky - g_hero.body.hy : cy;+ if ((qx - cx) * (qx - cx) + (qy - cy) * (qy - cy) >= r->x1 * k * r->x1 * k) return false;+ } else if (!(fabsf(kx - cx) < r->x1 * k + g_hero.body.hx && fabsf(ky - cy) < r->y1 * k + g_hero.body.hy))+ return false;+ /* (from the range's place, the Mantis', to the Knight's) */+ float dx = g_hero.body.x - e->body.x, dy = g_hero.body.y - e->body.y, l = sqrtf(dx * dx + dy * dy);+ return l <= 0 || !phys_ray(e->body.x, e->body.y, dx / l, dy / l, l, CF_TERRAIN, NULL);+}++/* FaceObject (sprite facing right): turned to the Knight, its clip from the start as it turns */+static void face_hero_r(Enemy *e, int clip) {+ float want = hero_x() > e->body.x ? fabsf(e->sx) : -fabsf(e->sx);+ if (e->sx != want) {+ set_scale_x(e, want);+ if (clip >= 0) anim_play_from_frame(&e->anim, clip, 0);+ }+}++/* (RayCast2d down 3 from a place by its own: no ground there) */+static bool no_ground_at(const Enemy *e, float dx) { return !phys_ray(e->body.x + dx, e->body.y - 1, 0, -1, 3, CF_TERRAIN, NULL); }++/* ---------------------------------------------------------------- Mantis Warriors (Mantis): still till the Knight comes+ * in front of them, behind or above; then a lunge with a swipe (or a step back first), a slash up, or a turn. Their slashes+ * clash with the nail. Once the Mantis Lords are beaten they bow to him as he comes near, unless he strikes */+enum { MT_PAUSE, MT_IDLE, MT_FEINT, MT_ATTACK_ANTIC, MT_ATTACK1, MT_SWIPE, MT_RECOVER, MT_COOLDOWN, MT_TURN, MT_UP_ANTIC,+ MT_UP_SLASH, MT_UP_RECOVER, MT_RETURN_L, MT_RETURN_R, MT_FRIENDLY, MT_BOW };+/* (qx: Atk Speed Crt; qy: Raycast X; b0: Moving; wait: a state's; t0: Feint's; pause1: its slashes' clash, a while) */+static void mantis_idle(Enemy *e) {+ anim_play(&e->anim, CLIP(e, R_IDLE));+ e->body.vx = 0;+ e->wait = 6, e->st = MT_IDLE;+}++/* (Init's and Reset's: its speed and raycast the way it faces) */+static void mantis_facing(Enemy *e) {+ e->qy = -2, e->qx = -30;+ if (!(e->sx < 0)) e->qy = 2, e->qx = 30;+}++static void mantis_friendly(Enemy *e) {+ /* Friendly Idle: harmless, its Head Box off */+ e->damage = 0;+ mk_hitbox(e, STR_HEAD_BOX, false);+ e->st = MT_FRIENDLY;+}++static void mantis_attack_antic(Enemy *e) {+ anim_play_from_frame(&e->anim, CLIP(e, R_A1), 0);+ e->b0 = true;+ mk_hitbox(e, STR_HEAD_BOX, false), mk_hitbox(e, STR_HEAD_BOX_F, true);+ e->body.vx = 0;+ e->st = MT_ATTACK_ANTIC;+}++static void mantis_feint_or_attack(Enemy *e) {+ if (rand_range(0, 1) < 0.65f) {+ mantis_attack_antic(e);+ return;+ }+ /* Feint: a step back first, a while, or till there is no ground behind */+ e->body.vx = e->qx * -0.3f;+ anim_play(&e->anim, CLIP(e, R_A8));+ e->t0 = 0.3f, e->st = MT_FEINT;+ if (no_ground_at(e, -e->qy)) mantis_attack_antic(e);+}++static void mantis_turn(Enemy *e) {+ e->qx = -e->qx, e->qy = -e->qy;+ anim_play_from_frame(&e->anim, CLIP(e, R_TURN), 0);+ set_scale_x(e, -e->sx);+ e->st = MT_TURN;+}++static void mantis_up_antic(Enemy *e) {+ anim_play_from_frame(&e->anim, CLIP(e, R_A5), 0);+ e->body.vx = 0;+ e->st = MT_UP_ANTIC;+}++static void mantis_cooldown(Enemy *e) {+ anim_play(&e->anim, CLIP(e, R_IDLE));+ mk_hitbox(e, STR_HEAD_BOX, true);+ e->wait = 0.5f, e->st = MT_COOLDOWN;+}++/* (RayCast2d ahead and down, BoolAllTrue: lunging, at an edge) Stop At Edge: still, no longer lunging */+static void mantis_edge(Enemy *e) {+ if (e->b0 && no_ground_at(e, e->qy)) e->body.vx = 0, e->b0 = false;+}++static void mantis_reset(Enemy *e) {+ e->damage = 1;+ mantis_facing(e);+ mantis_idle(e);+}++static void mantis_start(Enemy *e) {+ e->start_x = e->body.x, e->start_y = e->body.y;+ e->b0 = false, e->pause1 = 0;+ e->wait = 0.2f, e->st = MT_PAUSE;+ anim_play(&e->anim, CLIP(e, R_IDLE));+}++static void mantis_fixed(Enemy *e) {+ if (e->st == MT_RECOVER) e->body.vx = 0;+ else if (e->st == MT_RETURN_L) e->body.vx = -6;+ else if (e->st == MT_RETURN_R) e->body.vx = 6;+}++static void mantis_update(Enemy *e) {+ bool done = (e->anim.events & ANIM_DONE) != 0, hit = (e->flags & 8) != 0;+ if (e->pause1 > 0) e->pause1 -= DT;+ switch (e->st) {+ case MT_PAUSE:+ if ((e->wait -= DT) <= 0) {+ /* Init; Lords Defeated? */+ mantis_facing(e);+ if (pd_flag(PDF_DEFEATED_MANTIS_LORDS)) mantis_friendly(e);+ else mantis_idle(e);+ }+ break;+ case MT_IDLE:+ if (hit) {+ /* Turn?: the Knight behind it, a turn; else at him */+ if ((hero_x() > e->body.x) != (e->sx > 0)) mantis_turn(e);+ else mantis_attack_antic(e);+ } else if (hero_in_sight_of(e, "Back Range"))+ mantis_turn(e);+ else if (hero_in_sight_of(e, "Front Range"))+ mantis_feint_or_attack(e);+ else if (hero_in_sight_of(e, "Above Range"))+ mantis_up_antic(e);+ else if ((e->wait -= DT) <= 0) {+ /* Return?: back where it started, if on its level and away from it */+ float dx = e->body.x - e->start_x;+ if (fabsf(e->body.y - e->start_y) > 0.25f || fabsf(dx) <= 1) mantis_idle(e);+ else {+ anim_play(&e->anim, CLIP(e, R_WALK));+ set_scale_x(e, dx > 0 ? -1.0f : 1.0f); /* (SetScale: 1, not its own size) */+ e->st = dx > 0 ? MT_RETURN_L : MT_RETURN_R;+ }+ }+ break;+ case MT_FEINT:+ if (hit || (e->t0 -= DT) <= 0 || no_ground_at(e, -e->qy)) mantis_attack_antic(e);+ break;+ case MT_ATTACK_ANTIC:+ if (done) {+ /* Set Speed; Attack 1 */+ e->body.vx = e->qx;+ mk_hitbox(e, STR_HEAD_BOX_F, false);+ anim_play_from_frame(&e->anim, CLIP(e, R_A2), 0);+ e->st = MT_ATTACK1;+ mantis_edge(e);+ }+ break;+ case MT_ATTACK1:+ mantis_edge(e);+ if (done) {+ /* Attack Swipe */+ anim_play_from_frame(&e->anim, CLIP(e, R_A3), 0);+ mk_hitbox(e, STR_SLASH_FORWARD, true);+ e->st = MT_SWIPE;+ mantis_edge(e);+ }+ break;+ case MT_SWIPE:+ mantis_edge(e);+ if (done) {+ /* Attack Recover */+ anim_play_from_frame(&e->anim, CLIP(e, R_A4), 0);+ mk_hitbox(e, STR_SLASH_FORWARD, false);+ e->body.vx = 0;+ e->st = MT_RECOVER;+ }+ break;+ case MT_RECOVER:+ if (done) mantis_cooldown(e);+ break;+ case MT_COOLDOWN:+ if ((e->wait -= DT) <= 0) mantis_idle(e);+ break;+ case MT_TURN:+ if (done) mantis_feint_or_attack(e);+ break;+ case MT_UP_ANTIC:+ if (done) {+ anim_play_from_frame(&e->anim, CLIP(e, R_A6), 0);+ mk_hitbox(e, STR_SLASH_UP, true);+ e->st = MT_UP_SLASH;+ }+ break;+ case MT_UP_SLASH:+ if (done) {+ anim_play_from_frame(&e->anim, CLIP(e, R_A7), 0);+ mk_hitbox(e, STR_SLASH_UP, false);+ e->st = MT_UP_RECOVER;+ }+ break;+ case MT_UP_RECOVER:+ if (done) mantis_cooldown(e);+ break;+ case MT_RETURN_L:+ case MT_RETURN_R:+ if (e->st == MT_RETURN_L ? e->body.x <= e->start_x : e->body.x >= e->start_x) mantis_reset(e);+ break;+ case MT_FRIENDLY:+ if (hit) mantis_reset(e);+ else if (hero_dist(e) < 10) anim_play(&e->anim, CLIP_MANTIS_BOW), e->st = MT_BOW;+ break;+ case MT_BOW:+ if (hit) {+ mantis_reset(e);+ break;+ }+ face_hero_r(e, CLIP_MANTIS_TURN_TO_BOW);+ if (hero_dist(e) > 12) {+ anim_play(&e->anim, CLIP_MANTIS_BOW_END); /* (Anim; Friendly Idle) */+ e->st = MT_FRIENDLY;+ }+ break;+ }+}++static void shape_bounds(const float *pts, int n, float *x0, float *y0, float *x1, float *y1);++/* its Slash Forward, Slash Up met by the nail: they clash (nail_clash_tink), the Knight thrown back */+static int mantis_nail(const float *pts, int npts, float direction) {+ int out = 0;+ float x0, y0, x1, y1;+ shape_bounds(pts, npts, &x0, &y0, &x1, &y1);+ for (int i = 0; i < MAX_ENEMIES; i++) {+ Enemy *e = &en[i];+ if (e->mode != EM_ALIVE || FSM(e) != EF_MANTIS || e->pause1 > 0 || (e->st != MT_SWIPE && e->st != MT_UP_SLASH)) continue;+ if (!hitbox_touch(e, x0, y0, x1, y1)) continue;+ e->pause1 = 0.12f;+ game_freeze(0.01f, 0.25f, 0.1f, 0, false); /* (FreezeMoment 3) */+ hero_nail_parry();+ cam_shake(SHAKE_ENEMY_KILL);+ switch (cardinal(direction)) {+ case 0: hero_recoil_left(); break;+ case 1: hero_recoil_down(); break;+ case 2: hero_recoil_right(); break;+ default: hero_bounce(); break;+ }+ out |= HB_RECOIL;+ }+ return out;+}++/* ---------------------------------------------------------------- Mantis Youths (Mantis Flyer): asleep on the walls till+ * the Knight comes near and in sight; then they hover about him, at a height, and dart at him when he is below; once the+ * Lords are beaten they leave him be unless he strikes */+enum { MF_REST, MF_WAKE, MF_CHASE, MF_PAUSE, MF_ANTIC, MF_ATTACK, MF_RETURN, MF_RECOVER, MF_CD, MF_IDLE_BUZZ, MF_FRIENDLY };+/* (t0: a state's time; t1: CD's second wait; qx: Attack Angle; pause0: FaceDirection's; tx: its rotation's from) */+static void mflyer_chase(Enemy *e) {+ anim_play(&e->anim, CLIP(e, R_IDLE));+ e->t0 = 8, e->st = MF_CHASE;+}++static void mflyer_wake(Enemy *e) {+ /* Wake: Startle, harmful; turned upright in 0.2 s (iTweenRotateTo, easeOutSine) */+ anim_play_from_frame(&e->anim, CLIP(e, R_A2), 0);+ e->damage = 1;+ if (e->rq) {+ const Ent *c = enemy_rec(e, ET_COLLIDER);+ e->tx = e->rq * 90.0f, e->ang = e->tx, e->rq = 0;+ if (c) enemy_set_box(e, c->x0, c->y0, c->x1, c->y1);+ }+ e->t1 = 0, e->st = MF_WAKE;+}++static void mflyer_start(Enemy *e) {+ e->start_x = e->body.x, e->start_y = e->body.y;+ e->ax = e->ay = 0, e->wait = 0, e->pause0 = 0, e->ang = 0;+ anim_play(&e->anim, CLIP(e, R_A1));+ e->st = MF_REST;+ if (pd_flag(PDF_DEFEATED_MANTIS_LORDS)) e->damage = 0, e->st = MF_FRIENDLY; /* (Lords Defeated) */+}++static void mflyer_fixed(Enemy *e) {+ switch (e->st) {+ case MF_REST:+ case MF_WAKE:+ case MF_FRIENDLY: e->body.vx = e->body.vy = 0; break;+ case MF_CHASE:+ case MF_PAUSE:+ case MF_CD: distance_fly_at(e, 7, 6, 0.2f, true, 4); break;+ case MF_ANTIC: e->body.vx *= 0.95f, e->body.vy *= 0.95f; break; /* (DecelerateV2) */+ case MF_RECOVER: e->body.vx = e->body.vy = 0; break;+ case MF_IDLE_BUZZ: idle_buzz_p(e, 0.75f, 1, 1.75f, 15, 1.5f); break;+ }+}++static void mflyer_update(Enemy *e) {+ bool done = (e->anim.events & ANIM_DONE) != 0, hit = (e->flags & 8) != 0;+ bool near = hero_in_sight_of(e, "Wake Region"); /* (its Wake Region's bool) */+ switch (e->st) {+ case MF_REST:+ if (hit || near) mflyer_wake(e);+ break;+ case MF_FRIENDLY:+ if (hit) mflyer_wake(e);+ break;+ case MF_WAKE:+ if (e->ang != 0) {+ float k = (e->t1 += DT) / 0.2f;+ e->ang = k >= 1 ? 0 : e->tx * (1 - sinf(k * (float)M_PI / 2));+ }+ if (done) e->ang = 0, mflyer_chase(e);+ break;+ case MF_CHASE:+ face_hero_r(e, CLIP(e, R_A3));+ if (hero_in_sight_of(e, "Attack Range")) {+ /* Pause: a moment, still coming */+ anim_play(&e->anim, CLIP(e, R_IDLE));+ e->t0 = rand_range(0.15f, 0.5f), e->st = MF_PAUSE;+ } else if ((e->t0 -= DT) <= 0) {+ /* Check Near: the Knight still about, chasing; else back to buzzing */+ if (near) mflyer_chase(e);+ else anim_play(&e->anim, CLIP(e, R_IDLE)), e->start_x = e->body.x, e->start_y = e->body.y, e->st = MF_IDLE_BUZZ;+ }+ break;+ case MF_PAUSE:+ face_hero_r(e, CLIP(e, R_A3));+ if ((e->t0 -= DT) <= 0) {+ if (!hero_in_sight_of(e, "Attack Range")) {+ e->t0 = rand_range(0.15f, 0.5f); /* (Recheck: CANCEL, Pause again) */+ break;+ }+ /* Get Angle: at the Knight, down to the side it faces; Attack Antic */+ float a = atan2f(hero_y() - e->body.y, hero_x() - e->body.x) * 180 / (float)M_PI;+ if (a < 0) a += 360;+ if (e->sx < 0) a = a < 180 ? 180 : a > 270 ? 270 : a;+ else a = a < 270 ? 270 : a > 360 ? 360 : a;+ e->qx = a;+ anim_play_from_frame(&e->anim, CLIP(e, R_A4), 0);+ e->st = MF_ANTIC;+ }+ break;+ case MF_ANTIC:+ if (done) {+ /* Attack: a dart at its angle, its sting on */+ float a = e->qx * (float)M_PI / 180;+ anim_play_from_frame(&e->anim, CLIP(e, R_A5), 0);+ e->body.vx = cosf(a) * 25, e->body.vy = sinf(a) * 25;+ mk_hitbox(e, STR_STING_HIT, true);+ e->t0 = 0.15f, e->st = MF_ATTACK;+ }+ break;+ case MF_ATTACK:+ if ((e->t0 -= DT) <= 0) {+ /* Return: back the way it came, its sting off */+ float a = (e->qx += 180) * (float)M_PI / 180;+ mk_hitbox(e, STR_STING_HIT, false);+ e->body.vx = cosf(a) * 25, e->body.vy = sinf(a) * 25;+ e->t0 = 0.25f, e->st = MF_RETURN;+ }+ break;+ case MF_RETURN:+ if ((e->t0 -= DT) <= 0) {+ e->body.vx = e->body.vy = 0;+ anim_play_from_frame(&e->anim, CLIP(e, R_A6), 0);+ e->st = MF_RECOVER;+ }+ break;+ case MF_RECOVER:+ if (done) {+ /* CD: hovering, half a second or less */+ anim_play(&e->anim, CLIP(e, R_IDLE));+ e->t0 = 0.5f, e->t1 = rand_range(0.35f, 0.65f), e->st = MF_CD;+ }+ break;+ case MF_CD:+ face_hero_r(e, CLIP(e, R_A3));+ if ((e->t0 -= DT) <= 0 || (e->t1 -= DT) <= 0) mflyer_chase(e);+ break;+ case MF_IDLE_BUZZ:+ if (near) {+ mflyer_chase(e);+ break;+ }+ face_direction_r(e, &e->pause0, CLIP(e, R_A3), 0.5f);+ break;+ }+}+++/* ---------------------------------------------------------------- the Mantis Lords (Mantis Lord): the first fights alone,+ * then the other two together (Battle Sub's Start chooses their moves), till both fall (Mantis Battle's Battle Control).+ * Each comes in from out of sight to dash across the floor, to stab down from above, or to throw its lance from a wall,+ * then leaves. Their thrones, the challenge, the cage and the floors are the scripts' (vm.c), which tell them when */+#define ML_DASH_HERO_L 29.98f /* (its FSM's variables, the arena's places) */+#define ML_DASH_HERO_R 30.18f+#define ML_DASH_SPEED 55+#define ML_DASH_X_L 22.25f+#define ML_DASH_X_R 37.65f+#define ML_DASH_Y 10.28f+#define ML_DSTAB_SPEED (-65)+#define ML_DSTAB_X_MIN 21.5f+#define ML_DSTAB_X_MAX 38.5f+#define ML_DSTAB_Y 16.96f+#define ML_LAND_Y 8.99f+#define ML_THROW_HERO_L 22+#define ML_THROW_HERO_R 37+#define ML_WALL_X_L 18.2f+#define ML_WALL_X_R 41.77f+#define ML_WALL_Y_MIN 10.96f+#define ML_WALL_Y_MAX 16.92f+enum { ML_OFF, ML_PAUSE, ML_START_PAUSE, ML_IDLE, ML_SUB_IDLE, ML_DASH_ARRIVE, ML_DASH_ANTIC, ML_DASH_ATTACK, ML_DASH_RECOVER,+ ML_DASH_HIT_OFF, ML_DASH_LEAVE, ML_DSTAB_ARRIVE, ML_DSTAB_ATTACK, ML_DSTAB_LAND, ML_DSTAB_LEAVE, ML_ARRIVE, ML_THROW_ANTIC,+ ML_THROW, ML_THROW_CD, ML_LEAVE_PAUSE, ML_WALL_LEAVE1, ML_WALL_LEAVE2, ML_AFTER_THROW,+ /* (its corpse: Corpse Mantis Lord (First)) */+ ML_CORPSE, ML_CORPSE_STOP, ML_DEPART, ML_GONE };+/* (the events Battle Sub's Start sends them) */+enum { MLE_NONE, MLE_DASH, MLE_DSTAB, MLE_DASH_L, MLE_DASH_R, MLE_HIGH_THROW, MLE_WIDE_L, MLE_WIDE_R, MLE_NARROW_L,+ MLE_NARROW_R };+/* (each lord's FSM's bools, Shot Event and counts, by which it is: 0 the first, 1 and 2 the others) */+static struct {+ bool sub, attacking_r, throw_r, throw_ud, no_dust;+ uint8_t shot; /* (MLE_WIDE_L .. MLE_NARROW_R, 0 none) */+ uint8_t ct[6]; /* (Ct Dash, Dstab, Throw; then their Ms) */+ uint8_t loops;+} mls[3];+/* (e: c1 which; qx Dash Speed Crt; start_x, start_y Away Pos; wait a state's time; b0 Dash Recover's next frame) */++/* the lances (Shot Mantis Lord): out fast, slowing, then back past it */+#define MAX_LANCES 4+static struct {+ bool on;+ float x, y, vx, vy, force, t;+ Anim anim;+} lances[MAX_LANCES];++static void lance_throw(Enemy *e) {+ int k = 0;+ for (int i = 0; i < MAX_LANCES; i++)+ if (!lances[i].on) k = i;+ const Ent *v = enemy_rec(e, ET_VARS);+ typeof(lances[0]) *l = &lances[k];+ memset(l, 0, sizeof *l);+ l->on = true;+ l->x = e->body.x + (v ? v->p0 : -2.01f) * e->sx, l->y = e->body.y + (v ? v->p1 : -1.97f); /* (its Throw Point) */+ anim_play(&l->anim, CLIP_MANTISLORD_MANTIS_AIR_PROJECTILE);+ const typeof(mls[0]) *m = &mls[e->c1];+ if (m->shot) {+ /* (Shot Event: Wide, Narrow, left or right; High Pt) */+ bool wide = m->shot == MLE_WIDE_L || m->shot == MLE_WIDE_R, right = m->shot == MLE_WIDE_L || m->shot == MLE_NARROW_L;+ l->vx = (wide ? 33 : 16.5f) * (right ? 1 : -1), l->force = (wide ? 24 : 12) * (right ? -1 : 1);+ l->vy = -2.2f;+ return;+ }+ /* Check UD: down, or up from a little lower (and up more from high: Corner Shot?); Check LR */+ if (m->throw_ud) l->vy = -1.1f;+ else {+ l->vy = 1.1f, l->y -= 0.5f;+ if (l->y >= 19) l->vy = 2;+ }+ l->vx = m->throw_r ? 33 : -33, l->force = m->throw_r ? -24 : 24;+}++static void lances_tick(void) {+ for (int i = 0; i < MAX_LANCES; i++) {+ typeof(lances[0]) *l = &lances[i];+ if (!l->on) continue;+ l->anim.events = 0;+ anim_update(&l->anim, DT);+ l->vx += l->force * DT; /* (AddForce2d, its mass 1) */+ l->x += l->vx * DT, l->y += l->vy * DT;+ if ((l->t += DT) >= 6) l->on = false; /* (Recycle) */+ }+}++static int lances_touch(float x0, float y0, float x1, float y1, int *side) {+ for (int i = 0; i < MAX_LANCES; i++) {+ const typeof(lances[0]) *l = &lances[i];+ float cx = l->x + 0.0122f * 1.5f, cy = l->y + 0.0184f * 1.5f, hx = 3.2207f * 0.75f, hy = 0.8937f * 0.75f;+ if (l->on && x1 > cx - hx && x0 < cx + hx && y1 > cy - hy && y0 < cy + hy) {+ *side = l->x > (x0 + x1) / 2 ? SIDE_RIGHT : SIDE_LEFT;+ return 1;+ }+ }+ return 0;+}++static void lances_draw(void) {+ for (int i = 0; i < MAX_LANCES; i++) {+ const typeof(lances[0]) *l = &lances[i];+ if (!l->on || l->anim.sprite < 0) continue;+ Inst in;+ sprite_inst(l->anim.sprite, l->x, l->y, -0.002f, 1.5f, 1.5f, 0, &in);+ gfx_actor(&in, SORT_KEY(0, 0));+ }+}++/* (seen or not, hit or not: SetMeshRenderer, SetCollider) */+static void mlord_shown(Enemy *e, bool on) {+ if (on) e->flags &= (uint8_t)~(1 | 32);+ else e->flags |= 1 | 32;+}++static void mlord_play(Enemy *e, int clip, int st) {+ anim_play_from_frame(&e->anim, clip, 0);+ e->st = (uint8_t)st;+}++static void mlord_away(Enemy *e) {+ /* Away: back out of sight; Idle */+ e->body.x = e->start_x, e->body.y = e->start_y, e->body.vx = e->body.vy = 0;+ mlord_shown(e, false);+ e->wait = 0.4f, e->st = ML_IDLE;+}++static void mlord_dash(Enemy *e, bool right) {+ /* Dash R, L: from one side, across; Dash Arrive */+ e->body.x = right ? ML_DASH_X_L : ML_DASH_X_R, e->body.y = ML_DASH_Y;+ set_scale_x(e, right ? 1 : -1);+ e->qx = right ? ML_DASH_SPEED : -ML_DASH_SPEED;+ mls[e->c1].attacking_r = right;+ mlord_shown(e, true);+ mlord_play(e, CLIP_MANTISLORD_DASH_ARRIVE, ML_DASH_ARRIVE);+}++static void mlord_dash_dir(Enemy *e) {+ float hx = hero_x();+ mlord_dash(e, hx < ML_DASH_HERO_L ? false : hx > ML_DASH_HERO_R ? true : rand_range(0, 1) < 0.5f);+}++static void mlord_dstab(Enemy *e) {+ /* Dstab Pos: over the Knight (its Shift? changes nothing that shows), turned either way at random; higher if he is+ * high (Shift Y?); Dstab Arrive */+ float x = hero_x();+ x = x < ML_DSTAB_X_MIN ? ML_DSTAB_X_MIN : x > ML_DSTAB_X_MAX ? ML_DSTAB_X_MAX : x;+ e->body.x = x, e->body.y = ML_DSTAB_Y;+ if (rand_range(0, 1) >= 0.5f) set_scale_x(e, -e->sx);+ if (rand_range(0, 1) >= 0.5f) rand_range(-4, 4);+ if (hero_y() >= 12) e->body.y = 19.2f;+ mlord_shown(e, true);+ mlord_play(e, CLIP_MANTISLORD_DSTAB_ARRIVE, ML_DSTAB_ARRIVE);+}++/* Throw L, R: on a wall, its lance across; Set Throws; Arrive */+static void mlord_throw_at(Enemy *e, bool left_wall) {+ e->body.x = left_wall ? ML_WALL_X_L : ML_WALL_X_R;+ set_scale_x(e, left_wall ? -1 : 1);+ mls[e->c1].throw_r = left_wall;+ mlord_shown(e, true);+ mlord_play(e, CLIP_MANTISLORD_WALL_ARRIVE, ML_ARRIVE);+}++static void mlord_throw_pos(Enemy *e) {+ float hx = hero_x();+ mlord_throw_at(e, hx > ML_THROW_HERO_R ? true : hx < ML_THROW_HERO_L ? false : rand_range(0, 1) < 0.5f);+}++static void mlord_throw(Enemy *e) {+ /* Throw UD?: down from higher, or up from lower; Throw Pos */+ typeof(mls[0]) *m = &mls[e->c1];+ m->throw_ud = rand_range(0, 1) < 0.5f, m->shot = 0;+ e->body.y = m->throw_ud ? rand_range(11.5f, 12.5f) : rand_range(9.5f, 10);+ mlord_throw_pos(e);+}++static void mlord_high_throw(Enemy *e) {+ /* High Check LR: at the Knight's height, a little lower */+ typeof(mls[0]) *m = &mls[e->c1];+ m->throw_ud = false, m->no_dust = true, m->shot = 0;+ float y = hero_y() - 1;+ e->body.y = y < 9 ? 9 : y > 21.93f ? 21.93f : y;+ mlord_throw_pos(e);+}++static void mlord_shot_throw(Enemy *e, int ev) {+ /* Wide, Narrow Throw L, R: high on a wall, its lance's flight its Shot Event's; Arrive 2 */+ bool left = ev == MLE_WIDE_L || ev == MLE_NARROW_L;+ set_scale_x(e, left ? -1 : 1);+ e->body.x = left ? ML_WALL_X_L : ML_WALL_X_R, e->body.y = rand_range(14.5f, 15.5f);+ mls[e->c1].shot = (uint8_t)ev;+ mlord_shown(e, true);+ mlord_play(e, CLIP_MANTISLORD_WALL_ARRIVE, ML_ARRIVE);+}++/* (an event to it: in Sub Idle only) */+static void mlord_event(Enemy *e, int ev) {+ if (e->st != ML_SUB_IDLE) return;+ switch (ev) {+ case MLE_DASH: mlord_dash_dir(e); break;+ case MLE_DSTAB: mlord_dstab(e); break;+ case MLE_DASH_L: mlord_dash(e, false); break;+ case MLE_DASH_R: mlord_dash(e, true); break;+ case MLE_HIGH_THROW: mlord_high_throw(e); break;+ default: mlord_shot_throw(e, ev); break;+ }+}++/* Attack Choice: high, or far to a side, a throw at his height; else a dash, a stab or a throw, none too often+ * (SendRandomEventV3) */+static void mlord_choose(Enemy *e) {+ float hx = hero_x(), hy = hero_y();+ if (hy > 19 || hx < 20.16f || hx > 39.87f) {+ mlord_high_throw(e);+ return;+ }+ static const uint8_t max[3] = {2, 3, 2}, missed[3] = {5, 5, 5};+ typeof(mls[0]) *m = &mls[e->c1];+ int pick = -1;+ while (pick < 0) {+ int k = (int)rand_range(0, 2.999f), forced = -1;+ for (int i = 0; i < 3; i++)+ if (m->ct[3 + i] >= missed[i]) forced = i;+ if (forced >= 0 || m->ct[k] < max[k]) {+ int p = forced >= 0 ? forced : k;+ uint8_t v = forced >= 0 ? 1 : (uint8_t)(m->ct[k] + 1);+ for (int i = 0; i < 3; i++) m->ct[i] = 0, m->ct[3 + i]++;+ m->ct[p] = v, m->ct[3 + p] = 0;+ pick = p;+ }+ if (m->loops < 255) m->loops++;+ if (m->loops > 100) pick = 0;+ }+ if (pick == 0) mlord_dash_dir(e);+ else if (pick == 1) mlord_dstab(e);+ else mlord_throw(e);+}++static void mlord_start(Enemy *e) {+ const Ent *v = enemy_rec(e, ET_VARS);+ e->c1 = v ? (uint8_t)v->a : 0;+ memset(&mls[e->c1], 0, sizeof mls[0]);+ mls[e->c1].sub = e->c1 != 0;+ e->start_x = e->body.x, e->start_y = e->body.y; /* (Away Pos) */+ mlord_shown(e, false);+ e->st = ML_OFF;+ anim_play(&e->anim, CLIP_MANTISLORD_DASH_ARRIVE);+ if (e->c1 == 0) memset(lances, 0, sizeof lances);+}++static void mlord_fixed(Enemy *e) {+ if (e->st == ML_DSTAB_ATTACK) {+ /* ChaseObjectGround: after the Knight, 7 a step's faster up to 7 */+ float vx = e->body.vx;+ if (e->body.x < hero_x()) vx += 7;+ else if (e->body.x > hero_x()) vx -= 7;+ e->body.vx = vx > 7 ? 7 : vx < -7 ? -7 : vx;+ }+ /* (kinematic: its velocity, nothing in its way) */+ e->body.x += e->body.vx * DT, e->body.y += e->body.vy * DT;+}++static void mlord_update(Enemy *e) {+ bool done = (e->anim.events & ANIM_DONE) != 0;+ typeof(mls[0]) *m = &mls[e->c1];+ switch (e->st) {+ case ML_OFF: break;+ case ML_PAUSE: e->wait = 0.5f, e->st = ML_START_PAUSE; break; /* (Init: Away Pos) */+ case ML_START_PAUSE:+ if ((e->wait -= DT) <= 0) {+ if (m->sub) e->st = ML_SUB_IDLE;+ else e->wait = 0.4f, e->st = ML_IDLE;+ }+ break;+ case ML_IDLE:+ if (m->sub) e->st = ML_SUB_IDLE;+ else if ((e->wait -= DT) <= 0) mlord_choose(e);+ break;+ case ML_SUB_IDLE:+ if (!m->sub) e->wait = 0.4f, e->st = ML_IDLE; /* (CANCEL) */+ break;+ case ML_DASH_ARRIVE:+ if (done) mlord_play(e, CLIP_MANTISLORD_DASH_ANTIC, ML_DASH_ANTIC);+ break;+ case ML_DASH_ANTIC:+ if (done) {+ /* Dash Attack: across, its Dash Hit on, till past the other side */+ anim_play(&e->anim, CLIP_MANTISLORD_DASH_ATTACK);+ e->body.vx = e->qx;+ mk_hitbox(e, STR_DASH_HIT, true);+ e->st = ML_DASH_ATTACK;+ }+ break;+ case ML_DASH_ATTACK:+ if (m->attacking_r ? e->body.x > ML_DASH_X_R : e->body.x < ML_DASH_X_L) {+ /* End R, L; Dash Recover */+ e->body.x = m->attacking_r ? ML_DASH_X_R : ML_DASH_X_L;+ e->body.vx = 0;+ mlord_play(e, CLIP_MANTISLORD_DASH_RECOVER, ML_DASH_RECOVER);+ }+ break;+ case ML_DASH_RECOVER:+ /* (the next frame) Dash Hit Off */+ mk_hitbox(e, STR_DASH_HIT, false);+ e->st = ML_DASH_HIT_OFF;+ if (!done) break;+ /* fall through */+ case ML_DASH_HIT_OFF:+ if (done) {+ /* Dash Leave: its collider off */+ e->flags |= 1;+ mlord_play(e, CLIP_MANTISLORD_DASH_LEAVE, ML_DASH_LEAVE);+ }+ break;+ case ML_DASH_LEAVE:+ case ML_DSTAB_LEAVE:+ if (done) mlord_away(e);+ break;+ case ML_DSTAB_ARRIVE:+ if (done) {+ /* Dstab Attack: down fast, after the Knight */+ anim_play(&e->anim, CLIP_MANTISLORD_DSTAB_ATTACK);+ e->body.vy = ML_DSTAB_SPEED;+ e->st = ML_DSTAB_ATTACK;+ }+ break;+ case ML_DSTAB_ATTACK:+ if (e->body.y <= ML_LAND_Y) {+ /* Dstab Land */+ e->body.y = ML_LAND_Y, e->body.vx = e->body.vy = 0;+ mlord_play(e, CLIP_MANTISLORD_DSTAB_LAND, ML_DSTAB_LAND);+ }+ break;+ case ML_DSTAB_LAND:+ if (done) mlord_play(e, CLIP_MANTISLORD_DSTAB_LEAVE, ML_DSTAB_LEAVE);+ break;+ case ML_ARRIVE:+ if (done) mlord_play(e, CLIP_MANTISLORD_THROW_ANTIC, ML_THROW_ANTIC);+ break;+ case ML_THROW_ANTIC:+ if (done) {+ /* Throw: its lance; No Dust off */+ mlord_play(e, CLIP_MANTISLORD_THROW, ML_THROW);+ lance_throw(e);+ m->no_dust = false;+ }+ break;+ case ML_THROW:+ if (done) e->wait = 0.5f, e->st = ML_THROW_CD;+ break;+ case ML_THROW_CD: /* (Throw CD; Keep Throwing?: CANCEL, one throw; Leave Pause) */+ case ML_LEAVE_PAUSE:+ if ((e->wait -= DT) <= 0) {+ if (e->st == ML_THROW_CD) e->wait = 0.5f, e->st = ML_LEAVE_PAUSE;+ else mlord_play(e, CLIP_MANTISLORD_WALL_LEAVE_1, ML_WALL_LEAVE1);+ }+ break;+ case ML_WALL_LEAVE1:+ if (done) mlord_play(e, CLIP_MANTISLORD_WALL_LEAVE_2, ML_WALL_LEAVE2);+ break;+ case ML_WALL_LEAVE2:+ if (done) {+ /* After Throw Pause: away, a while */+ e->body.x = e->start_x, e->body.y = e->start_y;+ mlord_shown(e, false);+ e->wait = 0.65f, e->st = ML_AFTER_THROW;+ }+ break;+ case ML_AFTER_THROW:+ if ((e->wait -= DT) <= 0) e->wait = 0.4f, e->st = ML_IDLE;+ break;+ }+}++/* ---------------------------------------------------------------- their fight (Battle Sub's Start, Battle Control) */+enum { MB_WAIT, MB_MAIN, MB_SUBS, MB_RETURN2, MB_BOW, MB_DONE };+enum { SB_OFF, SB_PAUSE, SB_CHOOSE, SB_MOVE, SB_D_DASH, SB_KILLED };+static struct {+ uint8_t st, sub, enemies, loops;+ float t, sub_t;+ uint8_t ct[14]; /* (Battle Sub's Start: Ct, then Ms, of its seven moves) */+ struct {+ uint8_t lord, ev; /* (1 or 2; MLE_*) */+ float t;+ } later[8];+} mlb;++static Enemy *mlord(int which) {+ for (int i = 0; i < MAX_ENEMIES; i++)+ if (en[i].mode != EM_OFF && FSM(&en[i]) == EF_MANTISLORD && en[i].c1 == which) return &en[i];+ return NULL;+}++/* (SendEventByName to Mantis 1 or 2, with its delay) */+static void mlb_send(int lord, int ev, float delay) {+ if (delay < DT) {+ Enemy *e = mlord(lord);+ if (e && e->mode == EM_ALIVE) mlord_event(e, ev);+ return;+ }+ for (int k = 0; k < 8; k++)+ if (!mlb.later[k].lord) {+ mlb.later[k].lord = (uint8_t)lord, mlb.later[k].ev = (uint8_t)ev, mlb.later[k].t = delay;+ return;+ }+}++static void mlb_broadcast(const uint8_t *ids) {+ if (ids[g_room.id] != 255) vm_broadcast(ids[g_room.id]);+}++/* Choose Move: high or far to a side, Mantis 1 throws at his height; else one of seven moves, none too often */+static void mlb_choose(void) {+ float hx = hero_x(), hy = hero_y();+ if (hy > 19 || hx < 20.16f || hx > 39.87f) {+ mlb_send(1, MLE_HIGH_THROW, 0.5f); /* (High Throw; Set Subs; then again next frame) */+ return;+ }+ static const uint8_t max[7] = {2, 2, 2, 2, 2, 1, 1}, missed[7] = {10, 10, 10, 10, 10, 12, 12};+ int pick = -1;+ while (pick < 0) {+ int k = (int)rand_range(0, 6.999f), forced = -1;+ for (int i = 0; i < 7; i++)+ if (mlb.ct[7 + i] >= missed[i]) forced = i;+ if (forced >= 0 || mlb.ct[k] < max[k]) {+ int p = forced >= 0 ? forced : k;+ uint8_t v = forced >= 0 ? 1 : (uint8_t)(mlb.ct[k] + 1);+ for (int i = 0; i < 7; i++) mlb.ct[i] = 0, mlb.ct[7 + i] < 255 ? mlb.ct[7 + i]++ : 0;+ mlb.ct[p] = v, mlb.ct[7 + p] = 0;+ pick = p;+ }+ if (mlb.loops < 255) mlb.loops++;+ if (mlb.loops > 100) pick = 0;+ }+ mlb.sub = SB_MOVE;+ switch (pick) {+ case 0: mlb_send(1, MLE_DSTAB, 0), mlb_send(2, MLE_DASH, 0.8f), mlb.sub_t = 2.75f; break; /* (Stab Dash) */+ case 1: mlb_send(1, MLE_DASH, 0), mlb_send(2, MLE_DSTAB, 1.5f), mlb.sub_t = 2.75f; break; /* (Dash Stab) */+ case 2:+ /* (Double Dash: D Dash Dir, right of 0 always; D Dash R: Mantis 1 now, Mantis 2 after) */+ mlb_send(1, MLE_DASH_R, 0);+ mlb.sub = SB_D_DASH, mlb.sub_t = 1.5f;+ break;+ case 3:+ /* (Pincer Check: the Knight in the middle, both at once; else not again soon) */+ if (hx >= 27.24f && hx <= 33.35f) mlb_send(1, MLE_DASH_R, 0), mlb_send(2, MLE_DASH_L, 0), mlb.sub_t = 2;+ else mlb.ct[3] = 0, mlb.ct[10] = 255, mlb.sub = SB_CHOOSE;+ break;+ case 4: mlb_send(1, MLE_DSTAB, 0), mlb_send(2, MLE_DSTAB, 0.75f), mlb.sub_t = 2.2f; break; /* (Double Stab) */+ case 5: mlb_send(1, MLE_NARROW_L, 0.5f), mlb_send(2, MLE_NARROW_R, 0.5f), mlb.sub_t = 4; break;+ default: mlb_send(1, MLE_WIDE_L, 0.5f), mlb_send(2, MLE_WIDE_R, 0.5f), mlb.sub_t = 4; break;+ }+}++static void mlb_tick(void) {+ if (mlb.st == MB_WAIT) return;+ for (int k = 0; k < 8; k++)+ if (mlb.later[k].lord && (mlb.later[k].t -= DT) <= 0) {+ Enemy *e = mlord(mlb.later[k].lord);+ if (e && e->mode == EM_ALIVE) mlord_event(e, mlb.later[k].ev);+ mlb.later[k].lord = 0;+ }+ switch (mlb.sub) {+ case SB_PAUSE:+ if ((mlb.sub_t -= DT) <= 0) mlb.sub = SB_CHOOSE;+ break;+ case SB_CHOOSE: mlb_choose(); break;+ case SB_MOVE:+ if ((mlb.sub_t -= DT) <= 0) mlb.sub = SB_CHOOSE;+ break;+ case SB_D_DASH:+ if ((mlb.sub_t -= DT) <= 0) {+ /* (D Dash R 2: Mantis 2 the way that catches him) */+ mlb_send(2, hero_x() < 27.24f ? MLE_DASH_L : MLE_DASH_R, 0);+ mlb.sub = SB_MOVE, mlb.sub_t = 2.25f;+ }+ break;+ }+ if (mlb.st == MB_RETURN2 || mlb.st == MB_BOW) {+ static const uint8_t bow[NUM_ROOMS] = VMEV_MLORD_BOW, defeat[NUM_ROOMS] = VMEV_MANTIS_DEFEAT,+ cage[NUM_ROOMS] = VMEV_MLORD_CAGE_UP, floor[NUM_ROOMS] = VMEV_MLORD_FLOOR_EXTEND,+ gate[NUM_ROOMS] = VMEV_MLORD_GATE_OPEN;+ if ((mlb.t -= DT) > 0) return;+ if (mlb.st == MB_RETURN2) {+ /* Bow: beaten; the thrones bow */+ pd_set_flag(PDF_DEFEATED_MANTIS_LORDS, true);+ mlb_broadcast(bow);+ mlb.st = MB_BOW, mlb.t = 3;+ } else {+ /* MANTIS DEFEAT; Floor + Cage: the cage up, the floors out, the gate open */+ mlb_broadcast(defeat);+ mlb_broadcast(cage), mlb_broadcast(floor), mlb_broadcast(gate);+ mlb.st = MB_DONE;+ }+ }+}++/* a lord down: Battle Control's count, Battle Sub's KILLED; its corpse */+static void mlord_die(Enemy *e) {+ static const uint8_t ret[NUM_ROOMS] = VMEV_RETURN;+ mk_hitbox(e, STR_DASH_HIT, false);+ if (e->c1 != 0) {+ mls[1].sub = mls[2].sub = false; /* (Killed) */+ mlb.sub = SB_KILLED;+ if (--mlb.enemies == 1) {+ if (ret[g_room.id] != 255) vm_send_named(VMSTR_MANTIS_LORD_THRONE_3, ret[g_room.id]); /* (Return 1) */+ } else if (mlb.enemies == 0) {+ /* (Journal; Return 2: the last throne's lord back) */+ if (ret[g_room.id] != 255) vm_send_named(VMSTR_MANTIS_LORD_THRONE_1, ret[g_room.id]);+ mlb.st = MB_RETURN2, mlb.t = 3.75f;+ }+ }+ /* (its corpse, a little up: facing the Knight, flashing, the ground rumbling) */+ e->mode = EM_CORPSE;+ e->body.y += 0.5f, e->body.vx = e->body.vy = 0;+ mlord_shown(e, true);+ set_scale_x(e, hero_x() > e->body.x ? 1 : -1);+ anim_play(&e->anim, CLIP_MANTISLORD_DEATH_NEW_1);+ cam_rumble(RUMBLE_MED);+ e->wait = 1, e->t0 = 0, e->st = ML_CORPSE;+}++static void mlord_corpse_update(Enemy *e) {+ static const uint8_t defeated[NUM_ROOMS] = VMEV_MANTIS_DEFEATED;+ e->t0 += DT;+ if ((e->wait -= DT) > 0 && !(e->st == ML_DEPART && (e->anim.events & ANIM_DONE))) return;+ switch (e->st) {+ case ML_CORPSE:+ cam_rumble(RUMBLE_OFF);+ if (e->c1 == 0) e->st = ML_DEPART, anim_play_from_frame(&e->anim, CLIP_MANTISLORD_DEATH_NEW_2, 0), e->wait = 99;+ else e->st = ML_CORPSE_STOP, e->wait = 0.5f; /* (Stop Effect) */+ break;+ case ML_CORPSE_STOP: e->st = ML_DEPART, anim_play_from_frame(&e->anim, CLIP_MANTISLORD_DEATH_NEW_2, 0), e->wait = 99; break;+ case ML_DEPART: e->flags |= 32, e->st = ML_GONE, e->wait = 1; break; /* (Leave Pause: hidden) */+ case ML_GONE:+ if (defeated[g_room.id] != 255) vm_broadcast(defeated[g_room.id]); /* (Destroy: MANTIS DEFEATED) */+ e->mode = EM_OFF;+ break;+ }+}++/* (its corpse flashes white: SpriteFlash.FlashingSuperDash, up 0.1 s, down 0.1 s, again) */+static void mlords_draw(void) {+ for (int i = 0; i < MAX_ENEMIES; i++) {+ const Enemy *e = &en[i];+ if (e->mode != EM_CORPSE || FSM(e) != EF_MANTISLORD || (e->flags & 32) || e->anim.sprite < 0) continue;+ uint8_t tint = 0;+ if (e->st == ML_CORPSE) {+ float p = fmodf(e->t0, 0.21f), k = p < 0.1f ? p / 0.1f : p < 0.11f ? 1 : 1 - (p - 0.11f) / 0.1f;+ tint = gfx_dyn_flash(12, 255, 255, 255, 255, 255, 255, 255, (uint8_t)(0.7f * k * 255));+ }+ Inst in;+ sprite_inst(e->anim.sprite, e->body.x, e->body.y, e->z, e->sx, 1, tint, &in);+ gfx_actor(&in, SORT_KEY(0, 0));+ }+}++/* the scripts' events the fight hears: the first lord's start, the others'; MANTIS DEFEAT: the mantises bow, the young+ * leave */+void enemies_vm_event(int ev) {+ static const uint8_t main[NUM_ROOMS] = VMEV_MLORD_START_MAIN, sub[NUM_ROOMS] = VMEV_MLORD_START_SUB,+ defeat[NUM_ROOMS] = VMEV_MANTIS_DEFEAT;+ if (ev == 255) return;+ if (ev == main[g_room.id]) {+ Enemy *e = mlord(0);+ if (e && e->st == ML_OFF) e->st = ML_PAUSE;+ mlb.st = MB_MAIN;+ } else if (ev == sub[g_room.id]) {+ /* Battle Sub's Start: both on; Init Pause */+ for (int k = 1; k <= 2; k++) {+ Enemy *e = mlord(k);+ if (e && e->st == ML_OFF) e->st = ML_PAUSE;+ }+ mlb.st = MB_SUBS, mlb.sub = SB_PAUSE, mlb.sub_t = 0.5f, mlb.enemies = 2;+ } else if (ev == defeat[g_room.id]) {+ for (int i = 0; i < MAX_ENEMIES; i++) {+ Enemy *e = &en[i];+ if (e->mode != EM_ALIVE) continue;+ if (FSM(e) == EF_MANTIS) e->wait = 0.2f, e->st = MT_PAUSE; /* (Pause, then friendly) */+ else if (FSM(e) == EF_MANTISFLYER) e->mode = EM_OFF; /* (Disappear) */+ }+ }+}+/* ---------------------------------------------------------------- the kinds' hooks (enemy.c) */static bool xl_wants_contacts(const Enemy *e) { return FSM(e) == EF_FUNGLING; }static void xl_enter(void) {memset(gas, 0, sizeof gas);memset(globs, 0, sizeof globs);memset(bombs, 0, sizeof bombs);+ memset(lances, 0, sizeof lances);+ memset(&mlb, 0, sizeof mlb);}static void xl_tick(void) {gas_tick();globs_tick();bombs_tick();+ lances_tick();+ mlb_tick();}static void xl_draw(void) {gas_draw();globs_draw();bombs_draw();+ lances_draw();+ mlords_draw();}static int xl_touch(float x0, float y0, float x1, float y1, int *side) {int d = gas_touch(x0, y0, x1, y1, side);if (!d) d = globs_touch(x0, y0, x1, y1, side);- return d ? d : bombs_touch(x0, y0, x1, y1, side);+ if (!d) d = bombs_touch(x0, y0, x1, y1, side);+ return d ? d : lances_touch(x0, y0, x1, y1, side);+}+static int xl_nail(const float *pts, int npts, float direction) {+ return ogres_nail(pts, npts, direction) | bombs_nail(pts, npts) | mantis_nail(pts, npts, direction);}-static int xl_nail(const float *pts, int npts, float direction) { return ogres_nail(pts, npts, direction) | bombs_nail(pts, npts); }static void xl_draw_enemy(const Enemy *e, float z, uint8_t tint) {if (FSM(e) == EF_FUNGOON && e->mode == EM_ALIVE) fungoon_draw(e, z, tint);}@@ -867,6 +1857,9 @@ static void xl_start(Enemy *e, const Ent *d) {else if (FSM(e) == EF_SHRUMELING) shrumeling_start(e);else if (FSM(e) == EF_OGRE) ogre_start(e);else if (FSM(e) == EF_SPORG) sporg_start(e);+ else if (FSM(e) == EF_MANTIS) mantis_start(e);+ else if (FSM(e) == EF_MANTISFLYER) mflyer_start(e);+ else if (FSM(e) == EF_MANTISLORD) mlord_start(e);}static void xl_fixed(Enemy *e) {@@ -876,6 +1869,8 @@ static void xl_fixed(Enemy *e) {else if (FSM(e) == EF_SHRUMELING) shrumeling_fixed(e);else if (FSM(e) == EF_OGRE) ogre_fixed(e);else if (FSM(e) == EF_SPORG) e->body.vx = e->body.vy = 0; /* (kinematic) */+ else if (FSM(e) == EF_MANTIS) mantis_fixed(e);+ else if (FSM(e) == EF_MANTISFLYER) mflyer_fixed(e);}static void xl_update(Enemy *e) {@@ -885,4 +1880,7 @@ static void xl_update(Enemy *e) {else if (FSM(e) == EF_SHRUMELING) shrumeling_update(e);else if (FSM(e) == EF_OGRE) ogre_update(e);else if (FSM(e) == EF_SPORG) sporg_update(e);+ else if (FSM(e) == EF_MANTIS) mantis_update(e);+ else if (FSM(e) == EF_MANTISFLYER) mflyer_update(e);+ else if (FSM(e) == EF_MANTISLORD) mlord_update(e);}diff --git a/games/hollowknight/src/game.h b/games/hollowknight/src/game.hindex 1e9407a1..256d2926 100644--- a/games/hollowknight/src/game.h+++ b/games/hollowknight/src/game.h@@ -405,6 +405,11 @@ void piece_spawn(int sprite, int layer, int order, int flags, float x, float y,float bounce, float spin_factor, float mirror, float vx, float vy, bool resting); /* (obj.c: debris) */void vm_activate_children(uint16_t name, bool on); /* ActivateAllChildren of a script object, by name */void vm_set_active(uint16_t name, bool on); /* (script objects by name: on, off) */+void vm_send_named(uint16_t name, int ev); /* (an event to script objects by name) */+void vm_activate_children_at(uint16_t name, float x, float y, bool on); /* (of those so named, the nearest's) */+#ifdef HK_FW+void enemies_vm_event(int ev); /* (the scripts' events the game's own code hears: enemy_fw.c) */+#endif/* the message as an item is taken (msg.c: MSG_*), the HUD Blanker (a white screen the scripts fade) */void msg_show(int item);bool msg_shown(void);diff --git a/games/hollowknight/src/obj.c b/games/hollowknight/src/obj.cindex 04f9e094..3aacd7a0 100644--- a/games/hollowknight/src/obj.c+++ b/games/hollowknight/src/obj.c@@ -354,7 +354,7 @@ static void chest_tick(Obj *o, const Ent *e) {/* Spawn Items: the geo, the item (its Item's children: the scripts'). (The item starts inside the chest's box,* which the game's physics pushes it out of by its top: the box off now, the item flies free as it does there) */for (int c = e->a; c < e->a + e->group; c++) phys_collider_enable(c, false);- vm_activate_children(VMSTR_ITEM, true);+ vm_activate_children_at(VMSTR_ITEM, e->x0, e->y0, true);o->hits = 1;geo_fling_at(0, (int)e->p0, e->x0, e->y0, 25, 38, 78, 102, 1);geo_fling_at(1, (int)e->p1, e->x0, e->y0, 25, 38, 78, 102, 1);@@ -364,7 +364,7 @@ static void chest_tick(Obj *o, const Ent *e) {chest_opened(o, e);else if (o->state == CH_OPENED && !o->hits) {/* (Activated: what it held, on; taken, it goes) */- vm_activate_children(VMSTR_ITEM, true);+ vm_activate_children_at(VMSTR_ITEM, e->x0, e->y0, true);o->hits = 1;}}diff --git a/games/hollowknight/src/vm.c b/games/hollowknight/src/vm.cindex 66884c44..7c7ffc65 100644--- a/games/hollowknight/src/vm.c+++ b/games/hollowknight/src/vm.c@@ -11,11 +11,12 @@#endif#define DT 0.02f-#define MAX_VM_OBJS 48-#define MAX_VM_ANIMS 20 /* (its objects that animate: an animator, a wave, a fade) */ /* (tools/vm.py: MAX_OBJS, MAX_FSMS, MAX_VARS) */-#define MAX_VM_FSMS 29+#define MAX_VM_OBJS 64+#define MAX_VM_ANIMS 24 /* (its objects that animate: an animator, a wave, a fade) */ /* (tools/vm.py: MAX_OBJS, MAX_FSMS, MAX_VARS) */+#define MAX_VM_FSMS 44#define MAX_VM_VARS 256-#define MAX_MOVERS 4+#define MAX_MOVERS 8+#define MAX_LATER 6 /* (events sent with a delay, waiting) */#define NONE 0xFFFF#define OWNER 0xFF0Fenum { O_HERO = 0xFF00, O_HERO_LIGHT, O_DIALOGUE_MANAGER, O_DIALOGUE_TEXT, O_AREA_TITLE, O_CAMERA_PARENT, O_MAIN_CAMERA,@@ -111,6 +112,12 @@ static struct {uint64_t touch, touch_was; /* (objects whose colliders the Knight touches, this step and the one before) */float nail_dir, spell_dir, dmg_dir; /* (the nail's last blow, the spell's way; the hit's: damages_enemy's direction) */uint8_t dmg_type; /* (its attackType: 0 the nail, 2 a spell) */+ struct { /* (SendEvent's delay: the sender, its target's operands, the event, the time left) */+ int8_t fsm;+ uint8_t ev;+ const uint8_t *target;+ float t;+ } later[MAX_LATER];} vm;/* ---------------------------------------------------------------- the data (VMDEF: definitions, string tables) */@@ -561,6 +568,9 @@ static void obj_event(int o, int ev, uint16_t fsm_name) {/* events the game's own objects hear */static void game_event(int ev) {+#ifdef HK_FW+ enemies_vm_event(ev); /* (the Mantis Lords' fight's) */+#endifif (ev >= VMEV_BG_CLOSE && ev <= VMEV_BG_DESTROY) gates_event(ev - VMEV_BG_CLOSE);else if (ev == VMEV_NPC_TITLE_DOWN) title_npc_down();else if (ev == VMEV_NPC_CONVO_START) title_npc_convo_start();@@ -691,9 +701,17 @@ static bool act(Fsm *f, const uint8_t *a, int mode) {Rd t = r;r.p += 5;int ev = rb(&r);- r.p += 2;+ float delay = fval(f, rv(&r));bool every = rb(&r);- send(f, &t, ev);+ if (delay >= DT) {+ /* (later: held till then, sent as it would have been) */+ for (int k = 0; k < MAX_LATER; k++)+ if (!vm.later[k].target) {+ vm.later[k].fsm = (int8_t)(f - vm.fsms), vm.later[k].ev = (uint8_t)ev, vm.later[k].target = t.p, vm.later[k].t = delay;+ break;+ }+ } else+ send(f, &t, ev);return !every;}case VMOP_SENDEVENTOF: {@@ -1478,6 +1496,7 @@ static bool act(Fsm *f, const uint8_t *a, int mode) {case 26: hero_recoil_left(); break;case 27: hero_recoil_right(); break;case 28: hero_charm_update(); break; /* (CharmUpdate) */+ case 30: hero_face(!h->cs.facing_right); break; /* (FlipSprite) */case 29: /* (RefreshOvercharm: a notch more, no longer overcharmed) */if (pd_flag(PDF_OVERCHARMED) && g_pd.charm_slots_filled <= g_pd.charm_slots) pd_set_flag(PDF_OVERCHARMED, false);break;@@ -1667,12 +1686,32 @@ static float ease(int type, float k) {}}+/* an event to the objects of a name (the Mantis Lords' thrones: RETURN) */+void vm_send_named(uint16_t name, int ev) {+ for (int o = 0; o < vm.nobjs; o++)+ if (vm.rec[o].name == name && obj_active(o)) obj_event(o, ev, NONE);+}+/* the objects the game names on or off (an arena's item: tools/vm.py's VM_NAMES) */void vm_set_active(uint16_t name, bool on) {for (int o = 0; o < vm.nobjs; o++)if (vm.rec[o].name == name && !(vm.objs[o].flags & OF_COND_OFF)) obj_set_active(o, on);}+/* (a chest's Item: of the objects so named, the one nearest a place, its children on) */+void vm_activate_children_at(uint16_t name, float x, float y, bool on) {+ int best = -1;+ float bd = 1e9f;+ for (int o = 0; o < vm.nobjs; o++)+ if (vm.rec[o].name == name && !(vm.objs[o].flags & OF_COND_OFF)) {+ float d = fabsf(vm.objs[o].x - x) + fabsf(vm.objs[o].y - y);+ if (d < bd) bd = d, best = o;+ }+ if (best >= 0)+ for (int c = 0; c < vm.nobjs; c++)+ if (vm.rec[c].parent == best) obj_set_active(c, on);+}+/* ActivateAllChildren of an object the game names (Hornet's Hornet Saver) */void vm_activate_children(uint16_t name, bool on) {for (int o = 0; o < vm.nobjs; o++)@@ -1851,6 +1890,13 @@ void vm_enter(void) {void vm_tick(void) {if (!vm.nfsms) return;+ /* (the events sent with a delay, as their time comes) */+ for (int k = 0; k < MAX_LATER; k++)+ if (vm.later[k].target && (vm.later[k].t -= DT) <= 0) {+ Rd t = {vm.later[k].target};+ vm.later[k].target = NULL;+ send(&vm.fsms[vm.later[k].fsm], &t, vm.later[k].ev);+ }/* (FSMs whose objects came on: their Start) */for (int i = 0; i < vm.nfsms; i++)if (vm.fsms[i].pending && !vm.fsms[i].on && obj_active(vm.fsms[i].owner)) fsm_start(&vm.fsms[i]);@@ -2035,8 +2081,8 @@ void vm_debug(void) {printf(" vm");for (int i = 0; i < vm.nfsms; i++) {const Fsm *f = &vm.fsms[i];- if (f->on) printf(" %d:%d", i, f->state);- else printf(" %d:-", i);+ if (f->on) printf(" %d(%d):%d", i, f->owner, f->state);+ else printf(" %d(%d):-", i, f->owner);}printf("\n");if (getenv("VMOBJ"))diff --git a/games/hollowknight/tools/actors.py b/games/hollowknight/tools/actors.pyindex e7e8ac63..6c877fba 100644--- a/games/hollowknight/tools/actors.py+++ b/games/hollowknight/tools/actors.py@@ -24,7 +24,7 @@ KNIGHT = ("resources.assets", 20600, [# (the Mantis Claw's: sliding down a wall, the jump off it, a slash from it, its puff; Mark of Pride's slashes)"Wall Slide", "Walljump", "Wall Slash", "Walljump Puff", "SlashEffect M", "SlashEffectAlt M", "UpSlashEffect M","DownSlashEffect M",-])+] + (["Challenge Start", "Challenge End"] if os.environ.get("HK_PART") == "2" else [])) # (the Mantis Lords' challenge)# enemy kinds: name, the FSM (or component) that runs them, their library, the C code for that FSM, and the clips each# role plays (src/enemy.c: R_*); the corpse's from its library (by default the enemy's)@@ -120,6 +120,19 @@ FW_KINDS = [# (Sporg; its Spore Bombs' clips are its library's: CLIP_SPORG_IDLE_2, CLIP_SPORG_EXPLODE)("sporg", "Shroom Turret", ("sharedassets167.assets", 154), "SPORG",{"IDLE": "Idle 1", "A1": "Sleep to Idle", "A2": "Attack", "A3": "Sleep", "DEATH_AIR": "Death"}, ["Idle 2", "Explode"]),+ # (Mantis Village: its warriors and youths; a warrior bows once the Lords are beaten: CLIP_MANTIS_*)+ ("mantis", "Mantis", ("sharedassets176.assets", 177), "MANTIS",+ {"IDLE": "Idle", "TURN": "Turn", "WALK": "Walk", "A1": "Attack Antic", "A2": "Attack 1", "A3": "Attack 2",+ "A4": "Attack Recover", "A5": "Up Attack Antic", "A6": "Up Attack Slash", "A7": "Up Attack Recover", "A8": "Walk B",+ "DEATH_AIR": "Death Air"}, ["Bow", "Bow End", "Turn To Bow"]),+ ("mantisflyer", "Mantis Flyer", ("sharedassets176.assets", 203), "MANTISFLYER",+ {"IDLE": "Fly", "A1": "Rest", "A2": "Startle", "A3": "Turn To Fly", "A4": "Attack Antic", "A5": "Attack",+ "A6": "Attack Recover"}),+ # (the Mantis Lords: their code plays their clips by name, CLIP_MANTISLORD_*; their lances, their corpses')+ ("mantislord", "Mantis Lord", ("sharedassets180.assets", 84), "MANTISLORD", {"IDLE": "Wall Ready"},+ ["Wall Arrive", "Dash Arrive", "Dash Antic", "Dash Attack", "Dash Recover", "Dash Leave", "Dstab Arrive",+ "Dstab Attack", "Dstab Land", "Dstab Leave", "Throw Antic", "Throw", "Wall Leave 1", "Wall Leave 2",+ "Mantis Air Projectile", "Death New 1", "Death New 2"]),]if os.environ.get("HK_PART") == "2":ENEMY_KINDS += FW_KINDSdiff --git a/games/hollowknight/tools/ents.py b/games/hollowknight/tools/ents.pyindex a0f6ef29..147928c3 100644--- a/games/hollowknight/tools/ents.py+++ b/games/hollowknight/tools/ents.py@@ -45,10 +45,13 @@ ENEMY_VARS = {"Zombie Swipe": (["Lunge Speed", "Idle Time"], ["Coward"]),"Zombie Guard": (["Chase Distance", "Roam Distance"], ["Start Facing Left"])}# enemies whose body is a trigger, whose body is only their frames' colliders, and other children that are rangesTRIGGER_BODIES = {"Pigeon", "Shroom Turret"}-FRAME_BODIES = {"Plant Trap Control", "Mossy Control"}+FRAME_BODIES = {"Plant Trap Control", "Mossy Control", "Mantis Lord"}RANGES = {"Moss Walker": ("Wake Range",), "Pigeon": ("Hero Range", "Enemy Range"), "Plant Trap Control": ("Detector",),"Moss Knight Control": ("Wake Box",), "Mender Bug Ctrl": ("Hero Detect",), "Fungus Flyer": ("Attack R", "Attack L"),- "Shroom Brawler": ("Smash Region",), "Shroom Turret": ("Hero Detect",)}+ "Shroom Brawler": ("Smash Region",), "Shroom Turret": ("Hero Detect",),+ "Mantis": ("Front Range", "Back Range", "Above Range"), "Mantis Flyer": ("Attack Range",)}+# (enemies whose solid children hurt too: a Mantis' head and sting)+SOLID_HITS = {"Mantis", "Mantis Flyer"}# (an arena's enemies its Start wakes (1) and its Wave 2 (2): WAKE sent to each, by _arenas)ARENA_WAKES = {}# (enemies whose attacks start with their colliders off: those still kept, off)@@ -511,7 +514,8 @@ def _enemy(o, by_id, persist, name, d=None, strings=None, owners=None):q = by_id[ch]qd = next((c.get("v") for c in q["c"] if c.get("class") == "DamageHero" and c.get("v") is not None), None)qc = next((c for c in q["c"] if c["type"] in ("BoxCollider2D", "PolygonCollider2D") and c.get("v") and- c["v"].get("m_IsTrigger") and (c["v"].get("m_Enabled", 1) or fsm.get("name") in HITBOXES_OFF)), None)+ (c["v"].get("m_IsTrigger") or fsm.get("name") in SOLID_HITS) and+ (c["v"].get("m_Enabled", 1) or fsm.get("name") in HITBOXES_OFF)), None)zone = q["name"] == "Battle Range"if (qd is None and not zone) or qc is None:continue@@ -589,6 +593,11 @@ def _enemy(o, by_id, persist, name, d=None, strings=None, owners=None):wr = kid.get("Wake Region")bits = (1 if (var.get("Facing Right") or [0, False])[1] else 0) | (2 if wr and wr["self_active"] else 0)out.append(rec(ENT_BOX, ET_VARS, p=(sp[0], sp[1], ARENA_WAKES.get(o["id"], 0), 0), box=cbox, a=bits))+ if fsm.get("name") == "Mantis Lord":+ # (which of the three: the first, then the two together; its Throw Point)+ kid = {by_id[ch]["name"]: by_id[ch] for ch in o.get("children", [])}+ tp = kid.get("Throw Point", {}).get("lpos", [0, 0])+ out.append(rec(ENT_BOX, ET_VARS, p=(tp[0], tp[1], 0, 0), a={"Mantis Lord S1": 1, "Mantis Lord S2": 2}.get(o["name"], 0)))if fsm.get("name") == "Shroom Turret":# (Sporg: its Fire Angle, its Spawn Point from it)q = next((by_id[ch] for ch in o.get("children", []) if by_id[ch]["name"] == "Spawn Point"), None)@@ -869,7 +878,8 @@ def room(d, rooms, strings, persist, name, sprites=None, owners=None, rec_base=0prebattle = set()groups = {}marker_index = {}- objs = [o for o in d["objects"] if o["active"]]+ # (and the Mantis Lords, off till their fight wakes them: src/enemy_fw.c)+ objs = [o for o in d["objects"] if o["active"] or any((c.get("fsm") or {}).get("name") == "Mantis Lord" for c in o["c"])]by_id = {o["id"]: o for o in d["objects"]}arena_gone, arena_counted, arena_later = _arenas(d, by_id)import state@@ -966,7 +976,7 @@ def room(d, rooms, strings, persist, name, sprites=None, owners=None, rec_base=0battles.append((len(recs), (ref("CameraLock 1") or [0, 0, 0])[2], (ref("CameraLock 2") or [0, 0, 0])[2]))recs.append(rec(ENT_OBJ, OK_BATTLE, _trigger(o) or (0, 0, 0, 0), (-1, -1, 1, 0), group=g_arm,persist=persist.id(name, o["path"]) if persistent else NO_PERSIST))- if f and "False Knight" not in f["vars"]:+ if f and "False Knight" not in f["vars"] and "Lord S1" not in f["vars"]: # (the Mantis Lords': enemy_fw.c's)# an arena: its trigger (or none: an enemy starts it), its camera lock (fixed up below), how many it counts# down and the wait afteracts = lambda n: [a for a in ((_state(f, n) or {}).get("actions") or []) if a.get("enabled", True)]diff --git a/games/hollowknight/tools/pack.py b/games/hollowknight/tools/pack.pyindex bdf6100c..c671848e 100644--- a/games/hollowknight/tools/pack.py+++ b/games/hollowknight/tools/pack.py@@ -791,7 +791,8 @@ def main():secs["RVAR"].b += rvar# (the children enemy.c knows by name)str_ids = {n: STRINGS.id(n) for n in ("Attack Range", "Evade Range", "Spit Range", "Wake Box", "Slash Hitbox",- "Slash2 Hitbox", "door_stagExit") + (("Smash Hits",) if PART == 2 else ())}+ "Slash2 Hitbox", "door_stagExit") ++ (("Smash Hits", "Head Box", "Head Box F", "Slash Forward", "Slash Up", "Sting Hit", "Dash Hit") if PART == 2 else ())}secs["STR"].b += STRINGS.blob()secs["TEXT"].b += TEXTS.blob()secs["FONT"].b += TEXTS.fonts()@@ -854,7 +855,7 @@ def main():for e in vm.NAMED_EVENTS: # (each room's number for it; 255: its scripts don't know it)ids = [vm.BUILT[r].named_events.get(e, 255) if r in vm.BUILT else 255 for r in ROOMS]f.write("#define VMEV_%s {%s}\n" % (e.upper().replace(" ", "_"), ", ".join(str(i) for i in ids)))- for name in ("NPC Title", "Visited", "Display Right", "Hornet Saver", "Item") + (("Arena Item", "Arena Item Kept") if PART == 2 else ()):+ for name in ("NPC Title", "Visited", "Display Right", "Hornet Saver", "Item") + (("Arena Item", "Arena Item Kept", "Mantis Lord Throne 1", "Mantis Lord Throne 3") if PART == 2 else ()):f.write("#define VMSTR_%s %d\n" % (name.upper().replace(" ", "_"), vm.STR.index[name]))for name, i in str_ids.items():f.write("#define STR_%s %d\n" % (name.upper().replace(" ", "_"), i))diff --git a/games/hollowknight/tools/text.py b/games/hollowknight/tools/text.pyindex 39dc460e..05894ce6 100644--- a/games/hollowknight/tools/text.py+++ b/games/hollowknight/tools/text.py@@ -133,7 +133,7 @@ TITLES = ["KINGSPASS", "DIRTMOUTH", "CROSSROADS", "EGGTEMPLE", "SHAMANTEMPLE", ""HORNET", "ELDERBUG", "SLY", "ISELDA", "CORNIFER", "QUIRREL", "SHAMAN", "STAG", "STAG2", "TISO_C", "TISO_NC","CHARM_SLUG"]if os.environ.get("HK_PART") == "2": # (the second part's: Hollow Knight: Fungal Wastes)- TITLES += ["FUNGUS", "QUEENS_STATION", "MANTIS_VILLAGE", "FUNGUS_CORE", "RUINS", "MAGE_TOWER"]+ TITLES += ["FUNGUS", "QUEENS_STATION", "MANTIS_VILLAGE", "FUNGUS_CORE", "RUINS", "MAGE_TOWER", "MANTIS_LORDS"]def clean(s):diff --git a/games/hollowknight/tools/vm.py b/games/hollowknight/tools/vm.pyindex e68f6bab..523bb8d4 100644--- a/games/hollowknight/tools/vm.py+++ b/games/hollowknight/tools/vm.py@@ -70,8 +70,16 @@ ROOMS = {"Mantis Floor Gate", "Inspect Region"],"Fungus2_12": ["Inspect Region"],"Fungus2_15": ["Mantis Lever", "Mantis Lever (1)", "Mantis Lever (2)", "Mantis Lever (3)", "Mantis Lever (4)", "Mantis Gate",- "Mantis Gate (1)", "Mantis Gate (2)", "Mantis Gate (3)", "Mantis Gate (4)", "Breakable Wall", "mantis_cage_up"],- "Fungus2_31": ["Mantis Chest/Item/Shiny Item Charm", "Mantis Chest (1)/Item/Shiny Item", "Lords Undefeated Group"],+ "Mantis Gate (1)", "Mantis Gate (2)", "Mantis Gate (3)", "Mantis Gate (4)", "Breakable Wall", "mantis_cage_up",+ "deepnest_mantis_gate",+ # (the Mantis Lords' fight, Fungus2_15_boss: their thrones, the challenge, the cage, the floors; the+ # Lords and their two battles are enemy_fw.c's; then Fungus2_15_boss_defeated, their thrones)+ "Mantis Battle/Mantis Lord Throne 1", "Mantis Battle/Mantis Lord Throne 2",+ "Mantis Battle/Mantis Lord Throne 3", "Mantis Battle/mantis_lord_opening_floors",+ "Mantis Battle/mantis_lord_opening_floors (1)", "Mantis Battle/Challenge Prompt",+ "Mantis Battle/mantis_cage_down", "Mantis Battle/Bow Range",+ "Mantis Lord Throne 1", "Mantis Lord Throne 2", "Mantis Lord Throne 3", "Bow Range"],+ "Fungus2_31": ["Mantis Chest/Item", "Mantis Chest (1)/Item", "Lords Undefeated Group"],}def _piece(doc, q, rigid=True):"""A piece of debris (a sprite with a Rigidbody2D: how it falls, bounces and spins) -> FlingPiece's operands."""@@ -155,6 +163,13 @@ def _behaviours(rm, o):"animationCompleteEvent": ["event", "FINISHED"]})],{"FINISHED": "Idle"})])})import ents+ rb = next((c.get("v") or {} for c in o["c"] if c["type"] == "Rigidbody2D"), None)+ if (rm.name, o["path"]) in VM_NAMES and rb is not None and rb.get("m_BodyType", 0) == 0 and rb.get("m_GravityScale", 1) > 0:+ # (an item the game turns on in the air: a body, it falls as it comes on)+ out.append({"fsm": _fsm("Fall", "Init", {}, [+ ("Init", [("SetGravity2dScale", {"gameObject": "Owner", "gravityScale": rb.get("m_GravityScale", 1)}),+ ("FlingObject", {"flungObject": "Owner", "speedMin": 0, "speedMax": 0, "angleMin": 270,+ "angleMax": 270})], {})])})pdf = ents.pd_flags()for bn, off_if in _conds(o, pdf)[2:]:# (a DeactivateIfPlayerdata past the two its record keeps: a script that turns it off as it starts)@@ -208,7 +223,7 @@ SKIP_PATHS = {("Crossroads_04", "_Transition Gates/Mender Door/Inspect"), ("Cros# tollbooth Crossroads_16 drops into; the game's Knight comes up to it first by rooms this port leaves out, so here the# tollbooth is the way on to Crossroads_21 and the False KnightPULLED = {("Crossroads_03", "_Props/Toll Gate Switch")}-MAX_OBJS, MAX_FSMS, MAX_VARS, MAX_ANIMS = 48, 29, 256, 20 # (src/vm.c)+MAX_OBJS, MAX_FSMS, MAX_VARS, MAX_ANIMS = 64, 44, 256, 24 # (src/vm.c)# map pieces of their own a script marks visited (AddToScenesVisited), as their room's (src/map.c: after the rooms)MAP_SCENES = {"Crossroads_21_b": "Crossroads_21"}MAX_ROOM_BITS = 128 # (src/game.h)@@ -298,7 +313,10 @@ for e in ("FINISHED", "CONVO_FINISH", "CONVO START", "CONVO END", "BIG TITLE STAFIXED_EVENTS = len(EVENTS.list) # (src/data.h: VMEV_*)# events the game's code sends that only some rooms' scripts know, numbered as each room numbers its own (src/data.h:# VMEV_*, by room): the Elder Baldur's corpse's, a shop's charm lesson's-NAMED_EVENTS = ("UPDATE SHAMAN", "SHOP REGION INACTIVE", "SHOP REGION ACTIVE")+NAMED_EVENTS = ("UPDATE SHAMAN", "SHOP REGION INACTIVE", "SHOP REGION ACTIVE",+ # (the Mantis Lords' fight: between the thrones' scripts and enemy_fw.c)+ "MLORD START MAIN", "MLORD START SUB", "MANTIS DEFEATED", "MLORD BOW", "MANTIS DEFEAT", "MLORD CAGE UP",+ "MLORD FLOOR EXTEND", "MLORD GATE OPEN", "RETURN")# ---------------------------------------------------------------- the actions it runs: name -> (opcode, operands)# operand kinds: f i b s o value slots (u16), F I B S O V output variables (u8: 255 none), e event (u8), t event target,@@ -485,7 +503,7 @@ HERO_METHODS = ["RelinquishControl", "RegainControl", "StopAnimationControl", "S"FindGroundPoint", "SetBenchRespawn", "SetHazardRespawn", "RelinquishControlNotVelocity","SetCState", "SaveGame", "AffectedByGravity", "ResetHardLandingTimer", "StopPlayingAudio", "CanInspect","CanInput", "GetState", "CancelHeroJump", "ForceHardLanding", "AddHealth", "TryAddMPChargeSpa", "RecoilLeft",- "RecoilRight", "CharmUpdate", "RefreshOvercharm"]+ "RecoilRight", "CharmUpdate", "RefreshOvercharm", "FlipSprite"]# (GetState's states, by name: its argument)HERO_STATES = ["onGround", "attacking", "upAttacking", "downAttacking", "dashing", "backDashing", "willHardLand","spellQuake"] # (backDashing, spellQuake: never here)@@ -535,8 +553,6 @@ class Room:# (the scenes it loads with it, the first of them: their objects there only as they are, by a PlayerData bool)import scenefor an, flag, val, which in scene.additive(name):- if which != 1:- continueda = unity.scene(an)ids = {q["id"] for q in da["objects"]}k = lambda i, an=an: ("sc", an, i)@@ -547,7 +563,7 @@ class Room:c["children"] = [k(x) for x in q.get("children", [])]c["_doc"], c["_key"], c["_scene"], c["_raw"] = da, k, an, q["id"]if c["parent"] is None:- c["_variant"] = (flag, val)+ c["_variant"] = (flag, val if which == 1 else not val) # (the alternative: with the bool the other way)self.by_id[c["id"]] = cself.by_path.setdefault(q["path"], c)self.objs, self.obj_index = [], {}@@ -863,6 +879,15 @@ class Compiler:self.consts.append(v)return self.nvars + self.consts.index(v)+ def const3(self, v):+ """a vector's three constants, one after another (read so: src/vm.c)"""+ vs = [_u32(float(c)) for c in v[:3]]+ for i in range(len(self.consts) - 2):+ if self.consts[i:i + 3] == vs:+ return self.nvars + i+ self.consts += vs+ return self.nvars + len(self.consts) - 3+def found_nothing(self, v):"""a gameObject variable only FindChild sets, from its owner, naming a child it does not have"""if not (isinstance(v, str) and v.startswith("$")):@@ -1018,10 +1043,7 @@ class Compiler:return struct.pack("<H", 0xFFFF)if isinstance(v, str):return struct.pack("<H", self.value(v, "f"))- a = self.const(float(v[0]))- self.const(float(v[1]))- self.const(float(v[2]))- return struct.pack("<H", a)+ return struct.pack("<H", self.const3(v))if kind == "e":return bytes([self.event(v)])if kind == "es":@@ -1081,7 +1103,8 @@ class Compiler:"AudioPlayInState", "FadeAudio", "PlayRandomSound", "SetRotation", "RandomFloat","GetLastEvent", "SetBoxCollider2DSize", "Tk2dSpriteSetColor", "SetTextMeshProColor","AudioPlayRandom", "SetName", "GameObjectIsNull", "PlayVibrationV2",- "SpawnFromPool", "SpawnRandomObjects", "Rotate", "GetEventSender", "GetMidPoint", "SetAudioClip"):+ "SpawnFromPool", "SpawnRandomObjects", "Rotate", "GetEventSender", "GetMidPoint", "SetAudioClip",+ "ApplyMusicCue", "GGCheckIfBossScene"): # (music; Godhome's: never here)return Noneif n in ("SetMaterialColor", "GetMaterialColor", "EaseColor") and self.f["name"] != "Blanker Control":# (colors: only the stag stations' Stag Blanker's, black as the room comes in, then faded out to show it)@@ -1667,8 +1690,8 @@ def prepare(rooms, sprites, texts):for c in o["c"] + _behaviours(rm, o):f = c.get("fsm")# (a door's own scripts: the game's gates are its doors here)- if not f or f["name"] in SKIP_FSMS or _tinks(f) or _spins(f) or \- any(c2.get("class") == "TransitionPoint" for c2 in o["c"]):+ if not f or f["name"] in SKIP_FSMS or _tinks(f) or _spins(f) or c.get("enabled") is False or \+ any(c2.get("class") == "TransitionPoint" for c2 in o["c"]): # (a component off: never runs)continuecp = Compiler(rm, o, f)body, init = cp.compile()@@ -1777,7 +1800,9 @@ def room_blob(name, clip_index, sprites, owners=(), persist=None):m = np.array(o["m3"]).reshape(3, 3)sx = float(np.hypot(m[0, 0], m[1, 0])) * (1 if m[0, 0] >= 0 else -1)sy = float(np.hypot(m[0, 1], m[1, 1])) * (1 if m[1, 1] >= 0 else -1)- fl = (OF_ACTIVE if o.get("self_active", o["active"]) else 0)+ # (its own on or off under a script object; a script's root as it is in the scene: off under what is off)+ fl = (OF_ACTIVE if (o.get("self_active", o["active"]) if parent != 0xFFFF or "self_active" not in o else+ o["active"] or o.get("_variant")) else 0)box = None# (one its scripts hear the nail hit: its collider, a trigger or not, is what the nail's trigger meets)nail = any((a["name"] == "Trigger2dEvent" and dict(a["params"]).get("collideTag") == "Nail Attack") or