Skip to content

Commit

Permalink
Update traders_objectives.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
Tap0r committed Sep 14, 2024
1 parent da49e84 commit 8bc7067
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -60,7 +60,7 @@
/datum/objective/trader_purchase/New()
var/indx = rand(1, possible_items.len)
var/offset = rand(1, possible_items.len -1) // -1, чтобы не вступить в тот же элемент
var/new_indx = (indx + offset) % L.len
var/new_indx = (indx + offset) % possible_items.len
item_name1 = possible_items[indx]
item_name2 = possible_items[new_indx == 0 ? possible_items.len : new_indx] // этот финт, потому что в бъонде листы начинаются с 1
explanation_text = "Достать и притащить на наш шаттл [item_name1] и [item_name2]."
Expand Down

0 comments on commit 8bc7067

Please sign in to comment.