Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pcmove.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,7 @@ void apply_chaos() {
}

bool pcmove::actual_move() {
eMonster pushedMonster = moNone;

origd = d;
if(d >= 0) {
Expand Down Expand Up @@ -805,6 +806,7 @@ bool pcmove::actual_move() {
if(mip.proper()) {
auto tgt = roll_effect(mip, dice::data[c2]);
if(tgt.happy() > 0) {
pushedMonster = c2->monst;
changes.ccell(c2);
c2->monst = moNone;
c2->wall = waRichDie;
Expand Down Expand Up @@ -840,7 +842,8 @@ bool pcmove::actual_move() {
return false;
}
nextmovetype = lmMove;
addMessage(XLAT("You push %the1.", c2->wall));
if(pushedMonster == moNone) addMessage(XLAT("You push %the1.", c2->wall));
else addMessage(XLAT("You push %the1.", pushedMonster));
lastmovetype = lmPush; lastmove = cwt.at;
pushThumper(mip);
changes.push_push(mip.t);
Expand Down
Loading