mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-28 06:28:01 +01:00
Make stack amount var private
This commit is contained in:
@@ -232,7 +232,7 @@
|
||||
var/obj/item/stack/stack = O
|
||||
if(istype(stack))
|
||||
var/list/sheet_components = sheet_reagents[stack.type]
|
||||
var/amount_to_take = max(0,min(stack.amount,round(remaining_volume/REAGENTS_PER_SHEET)))
|
||||
var/amount_to_take = max(0,min(stack.get_amount(),round(remaining_volume/REAGENTS_PER_SHEET)))
|
||||
if(amount_to_take)
|
||||
stack.use(amount_to_take)
|
||||
if(QDELETED(stack))
|
||||
|
||||
@@ -270,9 +270,7 @@
|
||||
var/chosen = pick(material)
|
||||
if(chosen in rare_types)
|
||||
spawn_amount = rand(1,15)
|
||||
var/obj/item/stack/material/C = new chosen
|
||||
C.amount = spawn_amount
|
||||
C.loc = get_turf(holder.my_atom)
|
||||
new chosen(get_turf(holder.my_atom), spawn_amount)
|
||||
|
||||
/decl/chemical_reaction/instant/slimelight
|
||||
name = "Slime Glow"
|
||||
@@ -296,9 +294,7 @@
|
||||
result_amount = 1
|
||||
|
||||
/decl/chemical_reaction/instant/slimephoron/on_reaction(var/datum/reagents/holder)
|
||||
var/obj/item/stack/material/phoron/P = new /obj/item/stack/material/phoron
|
||||
P.amount = 10
|
||||
P.loc = get_turf(holder.my_atom)
|
||||
new /obj/item/stack/material/phoron(get_turf(holder.my_atom), 10)
|
||||
|
||||
/decl/chemical_reaction/instant/slimefreeze
|
||||
name = "Slime Freeze"
|
||||
|
||||
@@ -342,11 +342,11 @@
|
||||
if(istype(O, /obj/item/stack/medical/bruise_pack) && round(volume) >= 5)
|
||||
var/obj/item/stack/medical/bruise_pack/C = O
|
||||
var/packname = C.name
|
||||
var/to_produce = min(C.amount, round(volume / 5))
|
||||
var/to_produce = min(C.get_amount(), round(volume / 5))
|
||||
|
||||
var/obj/item/stack/medical/M = C.upgrade_stack(to_produce)
|
||||
|
||||
if(M && M.amount)
|
||||
if(M && M.get_amount())
|
||||
holder.my_atom.visible_message("<b>\The [packname]</b> bubbles.")
|
||||
remove_self(to_produce * 5)
|
||||
|
||||
@@ -1251,11 +1251,11 @@
|
||||
if(istype(O, /obj/item/stack/medical/crude_pack) && round(volume) >= 1)
|
||||
var/obj/item/stack/medical/crude_pack/C = O
|
||||
var/packname = C.name
|
||||
var/to_produce = min(C.amount, round(volume))
|
||||
var/to_produce = min(C.get_amount(), round(volume))
|
||||
|
||||
var/obj/item/stack/medical/M = C.upgrade_stack(to_produce)
|
||||
|
||||
if(M && M.amount)
|
||||
if(M && M.get_amount())
|
||||
holder.my_atom.visible_message("<b>\The [packname]</b> bubbles.")
|
||||
remove_self(to_produce)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user