Repository navigation
feat: chemical boil spit (spray + mass loss) - #125
Merged
Merged
Conversation
Route instant chemical heat through apply_chemical_heat; when T would cross boil, clamp, discard CHEMICAL_SPIT_FRAC, emit one silent spit event, and play a CSS spray cue on the action target (no teaching banner). Co-authored-by: Arnoud <arnoudja@users.noreply.github.com>
Co-authored-by: Arnoud <arnoudja@users.noreply.github.com>
Wire CSS/SVG spit spray to dish and filtrate as well as water. Pass allow_spit_mass=false from apply_elapsed so clock kinetic heat clamps at boil without discarding spray mass or emitting spit. Co-authored-by: Arnoud <arnoudja@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When instant chemical heat (H₂SO₄/HCl Φ_L, neutralization, kinetic dissolve ΔH) would push a vessel to or above boil on an action: clamp at
T_boil, discard school spray fraction (CHEMICAL_SPIT_FRAC = 0.03), emit one silentspitevent, and play a CSS/SVG spray burst on the last action target (water, dish, or filtrate). Clock ticks clamp only (no spray mass / no spit event). No teaching banner. Burner continuous boil stays separate.Changes
apply_chemical_heat(..., allow_spit_mass)/ sharedvessel_boil_temperature_capply_elapsed): clamp onlySpitSprayOverlayon water / dish / filtrate;prefers-reduced-motionhides dropletsdocs/lab-scene-spec.md— Instant chemical heat and boil spitTests
chemical_heat_overshoot_spits_and_drops_mass_at_boilmild_dilution_does_not_spitstacked_chemical_heats_emit_at_most_one_spitchemical_heat_clock_mode_clamps_without_spit_massOut of scope
Teaching copy; H₂SO₄-only local-heat UX; burner retune; three.js; graphic injury; stock water→
beaker-h2so4; challenge changes.