Summary
Prevent floor entities from being placed on top of existing floor entities.
Background
Players can currently stack multiple floor tiles (WoodFloor, StoneFloor) on the same grid location. This wastes inventory items and is unintended behaviour.
Requirements
- In
worldScreen.py, extend the placement validation in executePlaceAction() to check whether the target location already contains a floor entity before placing
- Floor types to guard against:
WoodFloor, StoneFloor
- If a floor is already present, silently skip placement (or set a brief status message via
status.set(...), consistent with other placement feedback)
Acceptance Criteria
Summary
Prevent floor entities from being placed on top of existing floor entities.
Background
Players can currently stack multiple floor tiles (
WoodFloor,StoneFloor) on the same grid location. This wastes inventory items and is unintended behaviour.Requirements
worldScreen.py, extend the placement validation inexecutePlaceAction()to check whether the target location already contains a floor entity before placingWoodFloor,StoneFloorstatus.set(...), consistent with other placement feedback)Acceptance Criteria
WoodFloororStoneFlooron a location that already contains either floor type is blockedtests/screen/test_worldScreen_pushStone.pyor a dedicated placement test covers this guard