fixing tests

This commit is contained in:
2026-07-25 12:48:11 -05:00
parent ed219d74e5
commit c3be2329c0
8 changed files with 514 additions and 571 deletions
+11 -5
View File
@@ -766,14 +766,20 @@ pub(crate) mod tests {
id
}
/// Stamps a solid object at `(x, y)` with **no script attached**, returning its id.
/// Stamps an object at `(x, y)` with **no script attached**, returning its id.
///
/// For exercising the "an object without a script is inert" path; everything
/// else should use [`object_at`].
pub(crate) fn plain_object_at(board: &mut Board, x: usize, y: usize) -> ObjectId {
/// For the "an object without a script is inert" path, and for plain physical
/// props (a pushable block with no behavior of its own). Everything scripted
/// should use [`object_at`].
pub(crate) fn plain_object_at(
board: &mut Board,
x: usize,
y: usize,
enter: EnterResponse,
) -> ObjectId {
let tile = TileSpec::Object {
script: None,
enter: EnterResponse::Block,
enter,
glyph: ObjectDef::default_glyph(),
optics: Optics { opaque: true, glow: 0 },
name: None,