if (t && t.protection) {
this.inputEl.value = t.protection;
}
+ } else if (this.mode.name == 'enter_face' && game.player.face) {
+ this.inputEl.value = game.player.face;
+ } else if (this.mode.name == 'enter_hat' && game.player.hat) {
+ this.inputEl.value = game.player.hat;
}
},
recalc_input_lines: function() {
elif self.mode.name == 'admin_thing_protect':
if hasattr(self.thing_selected, 'protection'):
self.input_ = self.thing_selected.protection
+ elif self.mode.name == 'enter_face':
+ self.input_ = self.game.player.face
+ elif self.mode.name == 'enter_hat':
+ self.input_ = self.game.player.hat
def send_tile_control_command(self):
self.send('SET_TILE_CONTROL %s %s' %