Skip to content

Commit

Permalink
Merge branch 'space_traders' of https://github.com/Tap0r/TauCetiClassic
Browse files Browse the repository at this point in the history
… into space_traders
  • Loading branch information
Tap0r committed Sep 15, 2024
2 parents bb23fb3 + 5c2a411 commit 54737bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/game/gamemodes/objectives/traders_objectives.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

/datum/objective/trader_purchase/New()
var/indx = rand(1, possible_items.len)
var/offset = rand(1, possible_items.len -1) // -1, чтобы не вступить в тот же элемент
var/offset = rand(1, possible_items.len - 1)
var/new_indx = (indx + offset) % possible_items.len
items += possible_items[indx]
items += possible_items[new_indx == 0 ? possible_items.len : new_indx]
Expand Down
4 changes: 2 additions & 2 deletions code/game/machinery/computer/trader_shuttle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
dat += "<ul><li>Секунд до готовности двигателя к полёту: <b>[round((last_move + TRADER_SHUTTLE_COOLDOWN - world.time) * 0.1)]</b></li>"
else
dat += "<ul><li>Двигатель готов к полёту</li>"
if(is_centcom_level(src.z))
if(is_centcom_level(z))
dat += "<ul><li>Местоположение: <b>Космос</b></li>"
dat += "</ul>"
dat += "<a href='?src=\ref[src];station=1'>Пристыковаться к станции</a>"
Expand All @@ -35,7 +35,7 @@
dat += "</ul>"
dat += "<a href='?src=\ref[src];space=1'>Начать процедуру отстыковки</a>"
else
if(is_centcom_level(src.z))
if(is_centcom_level(z))
dat += "<ul><li>Местоположение: <b>Приближаемся к станции</b></li>"
else
dat += "<ul><li>Местоположение: <b>Отдаляемся от станции</b></li>"
Expand Down

0 comments on commit 54737bd

Please sign in to comment.