mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
[MIRROR] Initialize fixing (#10335)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
2e725a0727
commit
ce2446922e
@@ -4,7 +4,7 @@
|
||||
icon = 'icons/obj/food_custom.dmi'
|
||||
desc = "If you can see this description then something is wrong. Please report the bug on the tracker."
|
||||
bitesize = 2
|
||||
|
||||
|
||||
var/size = 5 //The quantity of reagents which is considered "normal" for this kind of food
|
||||
//These objects will change size depending on the ratio of reagents to this value
|
||||
var/min_scale = 0.5
|
||||
@@ -14,7 +14,7 @@
|
||||
w_class = 2
|
||||
var/prefix
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/variable/Initialize()
|
||||
/obj/item/reagent_containers/food/snacks/variable/Initialize(mapload)
|
||||
. = ..()
|
||||
if (reagents)
|
||||
reagents.maximum_volume = size*8 + 10
|
||||
@@ -149,7 +149,7 @@
|
||||
size = 30
|
||||
w_class = 3
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/variable/cereal/Initialize()
|
||||
/obj/item/reagent_containers/food/snacks/variable/cereal/Initialize(mapload)
|
||||
. =..()
|
||||
name = pick(list("flakes", "krispies", "crunch", "pops", "O's", "crisp", "loops", "jacks", "clusters"))
|
||||
|
||||
@@ -157,4 +157,4 @@
|
||||
desc = "Poor little thing."
|
||||
size = 5
|
||||
w_class = 1
|
||||
var/kitchen_tag = "animal"
|
||||
var/kitchen_tag = "animal"
|
||||
|
||||
Reference in New Issue
Block a user