Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
fix(ai): clear all player target lists when one descends
Browse files Browse the repository at this point in the history
ref #47
  • Loading branch information
seiyria committed Dec 3, 2015
1 parent ba71a99 commit 5ef7122
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/jade/templates/party-tab.jade
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ script(type="text/ng-template", id="player-skills")
script(type="text/ng-template", id="player-equipment")
.row.text-center Equipment
.row(ng-repeat="(slotName, count) in player.raceInst.slots")
.col-xs-12.slot-name > {{_.capitalize(slotName)}} ({{ countSlotsTaken(player.equipment[slotName]) }}/{{count}} slots used)
.col-xs-12.slot-name > {{_.capitalize(slotName)}} ({{countSlotsTaken(player.equipment[slotName])}}/{{count}} slots used)
.col-xs-12(ng-repeat="item in player.equipment[slotName]", ng-include="'player-item'")

script(type="text/ng-template", id="player-inventory")
Expand Down
2 changes: 1 addition & 1 deletion src/js/rogue/definitions/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ export default class Player extends Character {
if(player.hp.atMin()) return;
GameState.world.moveEntity(player, stairs[0], stairs[1], newFloor);
player.stepRandomly();
player.doBehavior('descend');
});

this.doBehavior('descend');
GameState.world.descend();
GameState.emit('descend');
}
Expand Down

0 comments on commit 5ef7122

Please sign in to comment.