map_control = game.get_map(big_yx, 'control')
map_control[little_yx] = control_char
game.changed = True
- game.changed_fovs = True
+ game.record_fov_change((big_yx, little_yx))
cmd_SET_TILE_CONTROL.argtypes = 'yx_tuple:nonneg char'
def cmd_THING_PROTECTION(game, thing_id, protection_char, connection_id):
if not t:
raise GameError('thing of ID %s not found' % thing_id)
if not game.can_do_thing_with_pw(t, pw):
- raise GameError('wrong password for tile')
+ raise GameError('wrong password for thing')
t.name = name
game.changed = True
cmd_THING_NAME.argtypes = 'int:pos string string'