fixing tests
This commit is contained in:
+11
-5
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user