diff --git a/code/game/objects/items/random_items.dm b/code/game/objects/items/random_items.dm index 2625d2b865a..ded05d6f795 100644 --- a/code/game/objects/items/random_items.dm +++ b/code/game/objects/items/random_items.dm @@ -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)