Follow-up from #22. Only the avatar reacts to water and lava so far (strata_player/swim.lua).
Mobs: slimes (and later creatures) should slow down, float or sink per strata.liquids[name] physics, and take lava damage. Some future creatures should be water-only (a mob framework flag).
Dropped items (__builtin:item, wrapped in pickup.lua) should sink slowly in water, and burn in lava (removed after a moment), as in other 2D sandbox games.
Reuse strata.body_liquid(pos) and the per-liquid gravity/sink/damage fields rather than new constants.
Tests: a slime dropped into a water tank falls slower than in air; an item dropped into lava is gone after a few seconds (forceload the site, see DESIGN.md).
Follow-up from #22. Only the avatar reacts to water and lava so far (`strata_player/swim.lua`).
- Mobs: slimes (and later creatures) should slow down, float or sink per `strata.liquids[name]` physics, and take lava damage. Some future creatures should be water-only (a mob framework flag).
- Dropped items (`__builtin:item`, wrapped in `pickup.lua`) should sink slowly in water, and burn in lava (removed after a moment), as in other 2D sandbox games.
- Reuse `strata.body_liquid(pos)` and the per-liquid `gravity`/`sink`/`damage` fields rather than new constants.
Tests: a slime dropped into a water tank falls slower than in air; an item dropped into lava is gone after a few seconds (forceload the site, see DESIGN.md).
claude
added this to the v0.4 Combat & Creatures milestone 2026-11-14 06:26:11 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Follow-up from #22. Only the avatar reacts to water and lava so far (
strata_player/swim.lua).strata.liquids[name]physics, and take lava damage. Some future creatures should be water-only (a mob framework flag).__builtin:item, wrapped inpickup.lua) should sink slowly in water, and burn in lava (removed after a moment), as in other 2D sandbox games.strata.body_liquid(pos)and the per-liquidgravity/sink/damagefields rather than new constants.Tests: a slime dropped into a water tank falls slower than in air; an item dropped into lava is gone after a few seconds (forceload the site, see DESIGN.md).