mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
[MIRROR] Cleanup up all instances of using var/ definitions in proc parameters. (#240)
* Cleanup up all instances of using var/ definitions in proc parameters. (#52728) * var/list cleanup * The rest of the owl * plushvar bad * Can't follow my own advice. * Cleanup up all instances of using var/ definitions in proc parameters. Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
This commit is contained in:
@@ -511,7 +511,7 @@
|
||||
* If the seed's instability is >= 20, the seed donates one of it's reagents to that nearby plant.
|
||||
* * Range - The Oview range of trays to which to look for plants to donate reagents.
|
||||
*/
|
||||
/obj/machinery/hydroponics/proc/pollinate(var/range = 1)
|
||||
/obj/machinery/hydroponics/proc/pollinate(range = 1)
|
||||
for(var/obj/machinery/hydroponics/T in oview(src, range))
|
||||
//Here is where we check for window blocking.
|
||||
if(!Adjacent(T) && range <= 1)
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
/datum/plant_gene/core/proc/apply_stat(obj/item/seeds/S)
|
||||
return
|
||||
|
||||
/datum/plant_gene/core/New(var/i = null)
|
||||
/datum/plant_gene/core/New(i = null)
|
||||
..()
|
||||
if(!isnull(i))
|
||||
value = i
|
||||
|
||||
@@ -252,7 +252,7 @@
|
||||
* Individually, the formula for individual amounts of chemicals is Potency * the chemical production %, rounded to the fullest 1.
|
||||
* Specific chem handling is also handled here, like bloodtype, food taste within nutriment, and the auto-distilling trait.
|
||||
*/
|
||||
/obj/item/seeds/proc/prepare_result(var/obj/item/T)
|
||||
/obj/item/seeds/proc/prepare_result(obj/item/T)
|
||||
if(!T.reagents)
|
||||
CRASH("[T] has no reagents.")
|
||||
var/reagent_max = 0
|
||||
|
||||
Reference in New Issue
Block a user