Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit d4fb826

Browse files
why is round ID a string???
1 parent 2decf23 commit d4fb826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/modules/hydroponics/seeds.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@
330330
/obj/item/seeds/proc/randomize_plant_stat(plant_stat, inaccuracy = 0, hash_offset = 0)
331331
if(!inaccuracy)
332332
return plant_stat
333-
hash_offset += 1 + (GLOB.round_id % 16)
333+
hash_offset += 1 + (text2num(GLOB.round_id) % 16)
334334
var/raw_hash = copytext(md5("[potency]/[yield]/[maturation]/[production]/[endurance]/[lifespan]/[weed_rate]/[weed_chance]/[inaccuracy]/[REF(src)]"), \
335335
hash_offset, hash_offset + 2)
336336
var/random_offset = round(inaccuracy * hex2num(raw_hash) / 255)

0 commit comments

Comments
 (0)