Entry 411
Innis's magic shows its missiles: the crystals, bolts and fireballs fly with their trails and burst, its images' rings and shards and its particles are drawn (#69)
Linked from Innis's HP on the target window is the game's: from 10000 maxHP the game spells the last four digits through cheatHpStr, so 29884/30000 reads ':%%4/0000' (#69), Each of Innis's magics names its own missiles, unforced: Absolute Zero throws ice, Thunder Trance lightning, Demon Fire fire (#69), Twenty-two play questions were already answered: the triage's list against the work since, A field's lake and background as the code draws them: the lake's three animations and mirror, the hacked fields' backgrounds, DrawBG's turns and aurora.
Filescrates/piney-effect/src/innis.rsboss.rscrates/piney-battle/src/boss/innis.rstools/test_boss_effect_rs.pycrates/piney-game/src/session/tests/boss_fx.rs
Mentioned inGAPS.md:114
Issue #69 (ThreePendant, build 3e87cd5, Mutation): fighting Innis, "the
particle effects from magic do not appear to load at first". Absolute Zero
showed nothing, Demon Fire only its fire tornado. None of Innis's own
pictures had been ported (266 left them open): its three missiles,
the rings its images and its fall make, its particle generators, the
shield on a spell's hit and its images' mirror shards. What the player
saw was the skill MagicDamage lands at the end (the fire tornado is
skill row 7's spell); before it, the square's glow and nothing else.
What the game draws
From Mutation's code (gcmn; the addresses in docs/engine/boss-innis.md, "The pictures"):
- The missiles. Each constructor loads its picture and starts its
trails,
MissileSmokeGeneratorrows following the missile's place and turn (syncPos+0x10,syncRot+0x20, distSW off): the ice'sCMP_x202a(row 0), the lightning'sCMP_x500(rows 1, 2), the fire'sANM_x300(rows 3, 4). In flight eachDrawdraws it atSetMatrix_PosRotXYZScale(pos, rot, 3), the lightning and the fire at transparency 0.5. - The landing. Every missile's trails are killed. The first (NO 1)
then bursts:
BurstSmokeGeneratorrows by element; the ice twoeffIceRocks turned by -pi/2 and accEnemyEffDust(pos, 10, 5.0); the fire the dust too, and itsccAnmset toANM_x305. After it the ice draws xeffect'sANM_ex31lhit(scale 5) andANM_x305(2.5) withx305's substitutesOBJ_x048-051on theirc1palettes; the fire itsANM_x305at scale 4, set again at each end. - The rings.
ccEffSamonRing::SetModelis one switch on every volume: five sets of a short number and seven long ones, plus 34. Innis's images burst into 191 and 193, its fall raises 192 (CMP_x037of xeffect onc1,c3,c2); Magus's dead leaves' 195 is the same set'sc5. - The generators.
InisFieldGeneratorrows 2, 3, 0, 1 at the first pattern, row 4 over a skill's target;TornadoGeneratorat the escape;BurstGeneratorrows 2 (the fall), 3 and 4 (an image's burst). - The shards.
BreakMirror::Mbreakdraws each shard of x21'sCMP_ex21ef{ID}1-5withDrawPartsClumpon objLayer at its place and turn (SetMatrix_PosRotZYX). - The shield.
ccBoss02::Affecton a spell's hit:effResistantShield(this, 1, -1).
In the port
- piney-battle:
innis::Missile::stepis theDrawas a pure step with what it asks in order (innis::Call: sounds, the lightning's WaveShock, the quake,MagicDamagedue) and what it drew (Missile::shown: flight, landed, burst). The boss's manager pass makes the calls as before. The rules harness (tools/test_battle_innis_rs.py) and the other bosses' still pass. - piney-effect
innis: a missile made at itsOut::Effectand drawn after the boss's task from the flight its rules left (BossEffects::sync_missiles), its trails on anchors, its landing's calls there. The rocks' and the dust'srand()thus come after Innis's task, not in the manager's pass before it; while missiles fly the task draws none. A manager can also run one alone (Make::MissileAlone, the probe's).innis::startstarts the generators. - piney-effect
boss:ring_modelisSetModelwhole;Make::SamonRingmakes Innis's rings;WaveShock::beginlets a missile's landing make its wave in the game's order. ccAnmdraws carry their objects' palette swaps (AnmObj::change_clut). The spells' explosion (ccExplodeElement, 79) gets its elements' palettes with it;the_explosions_substitutes_own_their_paletteschecks the substitutes' own palettes on the disc.- piney-gen: the five tables and their force fields (
boss_inis_field,boss_tornado,boss_burst,boss_missile_smoke,boss_burst_smoke); data version 32. - piney-world:
BossRun::shardsfrom the images' mirrors, drawn on objLayer; the census counts the generators following an anchor. - piney-game:
Out::ParticlesandOut::Shieldstarted; the missiles synced afterboss_sync.
Checks
tools/test_boss_effect_rs.py'stest_innis_effects(PINEY_VOLUME=mutation): each missile's realCreate(each element as the first and as a later one, no callback, no camera) and the rings' (191-193, their burst set) run with the manager's pass in eemu against boss_probe'smissileandsring, every frame until the slots are free: the draws (clump and its palette swap, matrix, transparency;ccAnmand its frame), the sounds, the generators started (row, force fields, flags, place, what they follow) and killed, the rocks' effect slots,rand()andgenrand(). Two passes of nine cases, 1,328 frames, agree. The clump records now carry the palette swap, and Skeith's and Fidchell's cases still agree on Infection and Outbreak. Stand-ins: the explosion's substitutes have no model there (their palettes are the lib test's), and the missile's +0x40, which its constructor leaves unset, is taken as (0, 0, 0, 1).session::tests::boss_fxon Mutation's event 107, the gauge at half for the magic's run and each magic's element forced in turn:innis_magic_shows_its_missiles(before: none ofCMP_x202a,CMP_x500,ANM_x300or the bursts drawn; after: each in flight 260, 400, 230 frames, the bursts, trails following them) andinnis_images_burst_into_rings_and_shards(the images' rings 75 frames, the fall's, shards 162 frames).ring_model's unit test; piney-effect, piney-battle and piney-world tests, piney-game's suite (four threads), clippy, fmt,piney-gen gen --check.
Shots (/mnt/data/claude/scratch/i69): after-innis-00520-act4-w19.png
(the ice's crystals, forced while the square named Demon Fire),
after-innis-00570-act4-w19.png (its burst), after-innis-02280-act4-w19.png
(the lightning), after-innis-03400-act4-w19.png (the fireballs),
after-innis-01400-act5-w17.png (the images' shards and rings).
- the blur (
ccBossBlur) is drawn for no boss (117: it depends on what the heap left) - Kyvia's (Mutation, Outbreak), Magus's and Gorre's own pictures are still not drawn (docs/engine/boss-kyvia.md, boss-magus.md, boss-gorre.md): the same fault as Innis's, each its own port