Allows picking how much food is picked up with utensil (#12099)

This commit is contained in:
Casper3667
2021-07-21 14:19:14 +02:00
committed by GitHub
parent 936bf9762c
commit 6925f90fb0
2 changed files with 16 additions and 0 deletions
@@ -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"
+6
View File
@@ -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."