Skip to content

fix(status): stop burning while standing in water - #171

Merged
mparrett merged 1 commit into
mainfrom
fix/water-burning
Jul 23, 2026
Merged

fix(status): stop burning while standing in water#171
mparrett merged 1 commit into
mainfrom
fix/water-burning

Conversation

@mparrett

@mparrett mparrett commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

What changed

  • Prevent shallow and deep water tiles from being replaced by forced fire ignition.
  • Route burning status application through a water-aware helper.
  • Cover both water depths, normal floor behavior, and the fire-imp spell path with regression tests.

Why

Fire runes applied :burning directly after impact, bypassing the movement-time water extinguish logic. As a result, a player already standing in water could catch fire when hit by a fire imp. Forced fire ignition could also replace the water tile and leave a stale fire TTL entry.

Players and creatures standing in shallow or deep water now remain unburned, while fire behavior on non-water terrain is unchanged.

Fixes #162.

Validation

  • /Users/matt/projects-new/3p/let-go/lg xsofy/test/run.lg
  • 300 tests, 2,786 assertions, 0 failures, 0 errors
  • git diff --check

Tested with the new harness in #170

Screenshot 2026-07-22 at 10 33 02 AM

@mparrett mparrett added the deploy-preview Publish a gh-pages WASM preview for this PR label Jul 22, 2026
@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-07-23 00:30 UTC

@mparrett
mparrett marked this pull request as ready for review July 22, 2026 16:24
@mparrett
mparrett requested a review from nooga July 22, 2026 17:35
@mparrett mparrett changed the title Fix burning while standing in water fix: Fix burning while standing in water Jul 22, 2026
@mparrett mparrett changed the title fix: Fix burning while standing in water fix(status): stop burning while standing in water Jul 22, 2026

@nnunley nnunley left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to dig up my physics branch. I set up a multimap to indicate what should happen with different combined environment effects and a given cell

@mparrett
mparrett merged commit 5b72366 into main Jul 23, 2026
13 of 14 checks passed
@mparrett
mparrett deleted the fix/water-burning branch July 28, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deploy-preview Publish a gh-pages WASM preview for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Burning while standing in water

2 participants