mirror of
https://github.com/Aurorastation/Aurora-Old.git
synced 2026-08-25 21:56:15 +01:00
Chocolatebox
This commit is contained in:
@@ -3309,3 +3309,31 @@
|
||||
..()
|
||||
reagents.add_reagent("nutriment", 3)
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/chocolatebox
|
||||
name = "box of chocolates"
|
||||
desc = "A heart-shaped box of sweet, sweet chocolate-y goodness."
|
||||
icon_state = "chocolatebox-closed"
|
||||
wrapped = 1
|
||||
bitesize = 1
|
||||
trash = /obj/item/trash/chocolatebox
|
||||
|
||||
New()
|
||||
..()
|
||||
reagents.add_reagent("nutriment", 6)
|
||||
|
||||
attack_self(mob/user as mob)
|
||||
if(wrapped)
|
||||
open(user)
|
||||
|
||||
proc/open(mob/user as mob)
|
||||
wrapped = 0
|
||||
user << "You open the [src]."
|
||||
icon_state = "chocolatebox-open"
|
||||
update_icon()
|
||||
|
||||
attack(mob/M as mob, mob/user as mob, def_zone)
|
||||
if(wrapped)
|
||||
user << "You should open the box, first."
|
||||
return
|
||||
else
|
||||
..()
|
||||
Reference in New Issue
Block a user