Allow simple item bestowal when facing the level edge, too
This commit is contained in:
parent
d5fd7b546d
commit
c7012f2565
@ -26,9 +26,7 @@ function on_begin_force_floor(me, level) {
|
||||
// doing this here; decision time hasn't happened yet, but we need to know what direction we're
|
||||
// moving to know whether bestowal happens? so what IS the cause of item bestowal?
|
||||
let neighbor = level.get_neighboring_cell(me.cell, actor.direction);
|
||||
if (! neighbor)
|
||||
return;
|
||||
if (neighbor.try_entering(actor, actor.direction, level))
|
||||
if (neighbor && neighbor.try_entering(actor, actor.direction, level))
|
||||
return;
|
||||
let item = me.cell.get_item();
|
||||
if (! item)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user