diff --git a/locale/en/pirates.cfg b/locale/en/pirates.cfg index 631c0177..fefe8cbd 100644 --- a/locale/en/pirates.cfg +++ b/locale/en/pirates.cfg @@ -62,12 +62,13 @@ location_displayname_lobby_1=Starting Dock parrot_set_sail_advice=Ready to sail to the next island? Click up top! parrot_hard_praise=Steel chests for steel players! Squawk! parrot_normal_praise=Iron chests for iron players! Squawk! -parrot_fuel_warning=Fuel is low! +parrot_fuel_warning=Fuel is low! Quick, throw some coal to captain's cabin! parrot_silo_warning=The silo is attracting biters... parrot_0=We can wait here for as long as we like. parrot_night_warning=Did you know that biters deal more damage at night? parrot_boats_warning=200 leagues? I think we're being chased... parrot_kraken_warning=400 leagues coming up? What are those pink things I spy... +parrot_need_resources_to_undock_warning=Oh no! From now on, if we won't collect resources in time, we will lose! parrot_radioactive_tip_1=We'll need uranium-235 to push away from this island... parrot_radioactive_tip_2=The biters don't care if we pollute here, but they evolve fast. parrot_maze_tip_1=Something seems wrong with our minimap. @@ -77,7 +78,6 @@ parrot_cliff_explosive_tip=Cliff explosives? These look so powerful, they could parrot_buried_treasure_tip=Squawk! If X marks the spot - use an item to dig with! - difficulty_easy=Easy difficulty_normal=Normal difficutly_hard=Hard diff --git a/maps/pirates/balance.lua b/maps/pirates/balance.lua index f4aabe28..78a65899 100644 --- a/maps/pirates/balance.lua +++ b/maps/pirates/balance.lua @@ -173,9 +173,11 @@ function Public.max_time_on_island_formula() --always >0 --tuned end +Public.need_resources_to_undock_x = 40*20 + -- Returns true if uncollected resources will cause the crew to lose. function Public.need_resources_to_undock(overworldx) - if overworldx >= 40*20 then + if overworldx >= Public.need_resources_to_undock_x then return true else return false diff --git a/maps/pirates/surfaces/surfaces.lua b/maps/pirates/surfaces/surfaces.lua index 4dc1e0c7..c4457997 100644 --- a/maps/pirates/surfaces/surfaces.lua +++ b/maps/pirates/surfaces/surfaces.lua @@ -246,8 +246,8 @@ function Public.destination_on_collide(destination) if memory.overworldx == 40*5 then Common.parrot_speak(memory.force, {'pirates.parrot_boats_warning'}) - -- elseif memory.overworldx == 800 then - -- Parrot.parrot_800_tip() + elseif memory.overworldx == Balance.need_resources_to_undock_x then + Common.parrot_speak(memory.force, {'pirates.parrot_need_resources_to_undock_warning'}) end end