Merge pull request #9274 from Tails2091/why-was-this-a-while-loop

Changes While Loop To For Loop
This commit is contained in:
Crazy Lemon
2018-07-29 17:54:02 -07:00
committed by GitHub
+1 -3
View File
@@ -130,8 +130,7 @@
/obj/item/storage/pill_bottle/random_meds/New()
..()
var/i = 1
while(i < storage_slots)
for(var/i in 1 to storage_slots)
var/list/possible_medicines = standard_medicines.Copy()
if(prob(50))
possible_medicines += rare_medicines.Copy()
@@ -144,7 +143,6 @@
P.reagents.add_reagent(R, rand(2, 5)*10)
P.name = "Unlabelled Pill"
P.desc = "Something about this pill entices you to try it, against your better judgement."
i++
pixel_x = rand(-10, 10)
pixel_y = rand(-10, 10)