Skip to content

Commit

Permalink
Allows picking how much food is picked up with utensil (Aurorastation…
Browse files Browse the repository at this point in the history
  • Loading branch information
Casper3667 authored Jul 21, 2021
1 parent 936bf97 commit 6925f90
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions code/game/objects/items/weapons/material/kitchen.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
. = ..()
Expand Down Expand Up @@ -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."
Expand All @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions html/changelogs/utensilchange.yml
Original file line number Diff line number Diff line change
@@ -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."

0 comments on commit 6925f90

Please sign in to comment.