Lost Alpha DC 1.4004, спим когда захотим.))
В файле la_actor_sleep.script ищем:
function Sleep_Mgr:can_sleep()
local tbl_tip = {}
if self.phase == 0 then --/ "block"
tbl_tip = tTips.no_need
elseif level_weathers.is_blowout_active() then
tbl_tip = tTips.blowout
elseif la_actor_thirst and la_actor_thirst.is_thirsty() and not self:is_very_tired() then
tbl_tip = tTips.thirsty
elseif la_actor_hunger and la_actor_hunger.is_hungry() and not self:is_very_tired() then
tbl_tip = tTips.hungry
elseif this.CheckForEnemy() then
tbl_tip = tTips.enemy
else
return true --/>
end
--log("Sleep_Mgr:can_sleep:time=[%s] phase=[%s] tip=[%s]", game.get_game_time():timeToString(3), self.phase, tostring(tbl_tip[2])) --/#~#
news_manager.send_tip_hud( unpack(tbl_tip) )
return false --/>
end
Делаем так:
function Sleep_Mgr:can_sleep()
local tbl_tip = {}
-- if self.phase == 0 then --/ "block"
-- tbl_tip = tTips.no_need
-- else
if level_weathers.is_blowout_active() then
tbl_tip = tTips.blowout
elseif la_actor_thirst and la_actor_thirst.is_thirsty() and not self:is_very_tired() then
tbl_tip = tTips.thirsty
elseif la_actor_hunger and la_actor_hunger.is_hungry() and not self:is_very_tired() then
tbl_tip = tTips.hungry
elseif this.CheckForEnemy() then
tbl_tip = tTips.enemy
else
return true --/>
end
--log("Sleep_Mgr:can_sleep:time=[%s] phase=[%s] tip=[%s]", game.get_game_time():timeToString(3), self.phase, tostring(tbl_tip[2])) --/#~#
news_manager.send_tip_hud( unpack(tbl_tip) )
return false --/>
end
Профит, спокойных снов.))))))