Repository navigation
Conversation
…itch and removeLevelItems as loose ones are
Kharote
marked this pull request as ready for review
November 24, 2026 11:00
Collaborator
Author
|
Shipped in 1.2.1 (#349, release v1.2.1). |
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.
What this changes
With the level's items off (
World.setLevelItemsEnabled(false)), the arrows and the axe the level lays in a scene's ItemSlots (the bodies by Nebákov, StashCorpse3) stayed visible to everyone, andWorld.removeLevelItems({ position, radius })over them hid nothing.The sweep leaves alone every item that hangs on another entity, so that a sword in a hand or on the inventory's figure is never hidden. An item in an ItemSlot hangs on the slot entity and was left alone the same way. An ItemSlot parent no longer counts: those items are hidden by the switch and by removed places as loose ones are.
How it was tested
Kit, one game on trosecko at the Nebákov scene (1921.5 / 1402.5),
World.setLevelItemsEnabled(false): the sweep hid the scene's arrows by the bodies (arrow_normalat 1921–1923 / 1406–1407, the reported place) along with the level's other items; 57 items gone, the sweep 4 to 6 ms.Checklist
python Dev/tools/format_source.py --checkpasses.