mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +01:00
Allows picking how much food is picked up with utensil (#12099)
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
var/is_liquid = FALSE //whether you've got liquid on your utensil
|
||||
var/scoop_food = 1
|
||||
var/transfer_amt = 5
|
||||
var/list/bite_sizes = list(1,2,3,4,5)
|
||||
|
||||
/obj/item/material/kitchen/utensil/Initialize(newloc, material_key)
|
||||
. = ..()
|
||||
@@ -71,6 +72,14 @@
|
||||
to_chat(user, SPAN_WARNING("You don't have anything on \the [src].")) //if we have help intent and no food scooped up DON'T STAB OURSELVES WITH THE FORK)
|
||||
return
|
||||
|
||||
/obj/item/material/kitchen/utensil/verb/bite_size()
|
||||
set name = "Change bite size"
|
||||
set category = "Object"
|
||||
var/nsize = input("Bite Size","Pick the amount of reagents to pick up.") as null|anything in bite_sizes
|
||||
if(nsize)
|
||||
transfer_amt = nsize
|
||||
to_chat(usr, SPAN_NOTICE("\The [src] will now scoop up [transfer_amt] reagents."))
|
||||
|
||||
/obj/item/material/kitchen/utensil/fork
|
||||
name = "fork"
|
||||
desc = "It's a fork. Sure is pointy."
|
||||
@@ -86,6 +95,7 @@
|
||||
icon_state = "chopsticks"
|
||||
default_material = MATERIAL_WOOD
|
||||
transfer_amt = 2 //Chopsticks are hard to grab stuff with
|
||||
bite_sizes = list(1,2)
|
||||
|
||||
/obj/item/material/kitchen/utensil/fork/chopsticks/cheap
|
||||
name = "cheap chopsticks"
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
author: TheGreyWolf
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- rscadd: "It is now possible to pick how much food to scoop up with utensils."
|
||||
Reference in New Issue
Block a user