diff --git a/code/player/action/list.lua b/code/player/action/list.lua index 3a6133a..2081727 100644 --- a/code/player/action/list.lua +++ b/code/player/action/list.lua @@ -78,7 +78,7 @@ local action_list = { exit = {name='exit', cost=1}, }, basic = { - respawn = {cost= 10, modifier={resurrection = -5},}, + respawn = {cost= 10, modifier={hivemind = -5},}, attack = {cost= 1}, speak = {cost= 1}, feed = {cost= 1}, diff --git a/code/player/action/outcome.lua b/code/player/action/outcome.lua index fcd2cfd..1d6abf9 100644 --- a/code/player/action/outcome.lua +++ b/code/player/action/outcome.lua @@ -58,8 +58,8 @@ function Outcome.move(player, dir) map[dir_y][dir_x]:insert(player) end - player:updatePos(dir_y, dir_x) - return {dir, GPS_usage} + player:updatePos(dir_y, dir_x) + return {GPS_usage} end local ARMOR_DAMAGE_MOD = 2.5 @@ -137,7 +137,7 @@ function Outcome.search(player) local item, flashlight local player_has_flashlight, inv_ID = player.inventory:search('flashlight') - local player_inside_powered_building = p_tile:getStatus() == 'powered' and player:isStaged('inside') + local player_inside_powered_building = p_tile:getState() == 'powered' and player:isStaged('inside') if player_has_flashlight and not player_inside_powered_building then -- flashlight gives no search bonus if player inside powered building item = p_tile:search(player, player:getStage(), player_has_flashlight)