mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 04:57:57 +01:00
fixes some rand() loops (#87795)
## About The Pull Request i in rand(x,y) doesnt work i in 1 to rand(x,y) does ## Why It's Good For The Game bugggs ghommie stole my gbp ## Changelog 🆑 fix: fixed random dm modifiers & some life-like reagent reactions /🆑
This commit is contained in:
@@ -519,7 +519,7 @@
|
||||
modifiers_pool -= modpath
|
||||
|
||||
///Pick global modifiers at random.
|
||||
for(var/iteration in rand(3, 5))
|
||||
for(var/iteration in 1 to rand(3, 5))
|
||||
var/datum/deathmatch_modifier/modifier = GLOB.deathmatch_game.modifiers[pick_n_take(modifiers_pool)]
|
||||
modifier.on_select(lobby)
|
||||
modifier.on_start_game(lobby)
|
||||
|
||||
@@ -571,7 +571,7 @@
|
||||
|
||||
/datum/chemical_reaction/corgium/on_reaction(datum/reagents/holder, datum/equilibrium/reaction, created_volume)
|
||||
var/location = get_turf(holder.my_atom)
|
||||
for(var/i in rand(1, created_volume) to created_volume) // More lulz.
|
||||
for(var/i in 1 to rand(1, created_volume)) // More lulz.
|
||||
new /mob/living/basic/pet/dog/corgi(location)
|
||||
..()
|
||||
|
||||
@@ -627,7 +627,7 @@
|
||||
|
||||
/datum/chemical_reaction/butterflium/on_reaction(datum/reagents/holder, datum/equilibrium/reaction, created_volume)
|
||||
var/location = get_turf(holder.my_atom)
|
||||
for(var/i in rand(1, created_volume) to created_volume)
|
||||
for(var/i in 1 to rand(1, created_volume))
|
||||
new /mob/living/basic/butterfly(location)
|
||||
..()
|
||||
//scream powder
|
||||
@@ -976,7 +976,7 @@
|
||||
|
||||
/datum/chemical_reaction/ant_slurry/on_reaction(datum/reagents/holder, datum/equilibrium/reaction, created_volume)
|
||||
var/location = get_turf(holder.my_atom)
|
||||
for(var/i in rand(1, created_volume) to created_volume)
|
||||
for(var/i in 1 to rand(1, created_volume))
|
||||
new /mob/living/basic/ant(location)
|
||||
..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user