Skip to content

Commit

Permalink
9:59:57
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Jan 6, 2024
1 parent 9e15838 commit fabaa3e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions locale/en/tips.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ pydrive=[item=pydrive] Logistic stations
ocula=[item=ocula] Ocula
vatbrain=[item=vat-brain] Vat-brain
symbiosis=[item=ulric-infusion] Symbiosis
turd=[item=cottongut-pup] T.U.R.D.
turd-title=[item=cottongut-pup] Technological upgrade and research device
turd=[item=manure] T.U.R.D.
turd-title=[item=manure] Technological upgrade and research device
biofluid=[item=guano] Biofluid network

[pywiki-descriptions]
Expand Down Expand Up @@ -39,7 +39,7 @@ unavailable=Unavailable
no-research=Needs research
not-selected=Not selected
unselect=Reverse selection
unselect-migrate=Reverse selection (free for __1__ seconds)
unselect-migrate=Reverse selection (free for __1__:__2__:__3__)
open-in-tech-tree=Open in tech tree
adjusted-speed=[font=default-semibold][color=255,230,192]Real speed: [/color][/font]__1__%
admin-needed=Only a server administrator can select T.U.R.D. options.
Expand Down
4 changes: 2 additions & 2 deletions locale/ru/tips.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ pydrive=[item=pydrive] Логистические станции
ocula=[item=ocula] Окула
vatbrain=[item=vat-brain] Мозг-в-колбе
symbiosis=[item=ulric-infusion] Симбиоз
turd=[item=cottongut-pup] Т.У.Р.Д.
turd-title=[item=cottongut-pup] Технологические улучшения и разработка деталей
turd=[item=manure] Т.У.Р.Д.
turd-title=[item=manure] Технологические улучшения и разработка деталей
biofluid=[item=guano] Сеть биожидкости

[pywiki-descriptions]
Expand Down
8 changes: 6 additions & 2 deletions scripts/turd/turd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,13 @@ local function update_confirm_button(element, player, researched_technologies)
elseif selected_upgrade == element.tags.sub_tech_name then
if has_turd_migration(force_index, selected_upgrade)then
local ticks_remaining = global.turd_migrations[force_index][selected_upgrade] - game.tick
local seconds_remaining = math.floor(ticks_remaining / 60)
local hours = math.floor(ticks_remaining / 216000)
local minutes = math.floor(ticks_remaining / 3600) % 60
local seconds = math.floor(ticks_remaining / 60) % 60
if minutes < 10 then minutes = '0' .. minutes end
if seconds < 10 then seconds = '0' .. seconds end
element.style = 'confirm_button_without_tooltip'
element.caption = {'turd.unselect-migrate', seconds_remaining}
element.caption = {'turd.unselect-migrate', hours, minutes, seconds}
elseif (global.turd_reset_remaining[force_index] or 0) > 0 then
element.style = 'confirm_button_without_tooltip'
element.caption = {'turd.unselect'}
Expand Down

0 comments on commit fabaa3e

Please sign in to comment.