mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-15 18:14:22 +01:00
Replacing more C-style for loops with the faster, traditional ones. (#62908)
This commit is contained in:
@@ -454,7 +454,7 @@
|
||||
playsound(user, 'sound/effects/Glasshit.ogg', 140, TRUE)
|
||||
|
||||
if(W.type in list(/obj/structure/window, /obj/structure/window/fulltile, /obj/structure/window/unanchored, /obj/structure/window/fulltile/unanchored)) // boring unreinforced windows
|
||||
for(var/i = 0, i < speed, i++)
|
||||
for(var/i in 1 to speed)
|
||||
var/obj/item/shard/shard = new /obj/item/shard(get_turf(user))
|
||||
shard.embedding = list(embed_chance = 100, ignore_throwspeed_threshold = TRUE, impact_pain_mult=3, pain_chance=5)
|
||||
shard.updateEmbedding()
|
||||
|
||||
Reference in New Issue
Block a user