Skip to content

Commit

Permalink
TGS Test Merge (#6048)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blue authored and Blue committed Oct 4, 2023
2 parents e7085f6 + ad93d46 commit e9c12ed
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions code/modules/food/food/snacks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
var/nutriment_amt = 0
var/list/nutriment_desc = list("food" = 1)
var/datum/reagent/nutriment/coating/coating = null
var/sealed = 0
var/custom_open_sound
var/open_message = "You peel open the can! It looks ready to eat!"
var/opened_icon = 0
Expand Down Expand Up @@ -51,7 +52,7 @@
. = ..()
if(.)
return
if(!is_open_container())
if(sealed)
open(user)

/obj/item/reagent_containers/food/snacks/proc/open(mob/user)
Expand All @@ -65,7 +66,7 @@
update_icon()

to_chat(user, "<span class='notice'>[open_message]</span>")
atom_flags |= OPENCONTAINER
sealed = 0

/obj/item/reagent_containers/food/snacks/attack_mob(mob/target, mob/user, clickchain_flags, list/params, mult, target_zone, intent)
if(user.a_intent == INTENT_HARM)
Expand All @@ -81,7 +82,7 @@
qdel(src)
return 0

if(!is_open_container())
if(sealed)
to_chat(user, "<span class='notice'>You need to open [src]!</span>")
return 0

Expand Down Expand Up @@ -3646,7 +3647,7 @@ END CITADEL CHANGE */
trash = /obj/item/trash/liquidfood
filling_color = "#A8A8A8"
survivalfood = TRUE
atom_flags = NONE //starts closed
sealed = 1
center_of_mass = list("x"=16, "y"=15)
nutriment_amt = 30
bitesize = 4
Expand Down Expand Up @@ -3752,7 +3753,7 @@ END CITADEL CHANGE */
icon_state = "beans"
nutriment_amt = 4
nutriment_desc = list("beans" = 4)
atom_flags = NONE //starts closed
sealed = 1
opened_icon = 1

/obj/item/reagent_containers/food/snacks/beans/Initialize(mapload)
Expand Down Expand Up @@ -6596,7 +6597,7 @@ END CITADEL CHANGE */
filling_color = "#015f01"
nutriment_amt = 5
nutriment_desc = list("mossy fungus" = 5)
atom_flags = NONE //starts closed
sealed = 1
opened_icon = 1

/obj/item/reagent_containers/food/snacks/cavemoss_can/Initialize(mapload)
Expand All @@ -6611,7 +6612,7 @@ END CITADEL CHANGE */
filling_color = "#64482d"
nutriment_amt = 5
nutriment_desc = list("mushroom" = 1, "carrot" = 1, "bugflesh" = 3)
atom_flags = NONE //starts closed
sealed = 1
opened_icon = 1

/obj/item/reagent_containers/food/snacks/diggerstew_can/Initialize(mapload)
Expand All @@ -6626,7 +6627,7 @@ END CITADEL CHANGE */
filling_color = "#759c75"
nutriment_amt = 5
nutriment_desc = list("mushroom" = 2, "bugflesh" = 3)
atom_flags = NONE //starts closed
sealed = 1
opened_icon = 1

/obj/item/reagent_containers/food/snacks/canned_beetles/Initialize(mapload)
Expand All @@ -6641,7 +6642,7 @@ END CITADEL CHANGE */
filling_color = "#7a3f07"
nutriment_amt = 5
nutriment_desc = list(MAT_IRON = 3, "water" = 2)
atom_flags = NONE //starts closed
sealed = 1
opened_icon = 1

/obj/item/reagent_containers/food/snacks/rust_can/Initialize(mapload)
Expand All @@ -6657,7 +6658,7 @@ END CITADEL CHANGE */
filling_color = "#331f0c"
nutriment_amt = 5
nutriment_desc = list("bugflesh" = 3, "soil" = 1, "dirt" = 1)
atom_flags = NONE //starts closed
sealed = 1

/obj/item/reagent_containers/food/snacks/wrapped/alraune_bar/Initialize(mapload)
. = ..()
Expand Down Expand Up @@ -6741,7 +6742,7 @@ END CITADEL CHANGE */
filling_color = "#FC6F28"
nutriment_amt = 4
nutriment_desc = list("beans" = 4)
atom_flags = NONE //starts closed
sealed = 1
opened_icon = 1

/obj/item/reagent_containers/food/snacks/baschbeans/Initialize(mapload)
Expand All @@ -6756,7 +6757,7 @@ END CITADEL CHANGE */
filling_color = "#FFFAD4"
nutriment_amt = 5
nutriment_desc = list("corn" = 5)
atom_flags = NONE //starts closed
sealed = 1
opened_icon = 1

/obj/item/reagent_containers/food/snacks/creamcorn/Initialize(mapload)
Expand All @@ -6770,7 +6771,7 @@ END CITADEL CHANGE */
trash = /obj/item/trash/brainsnaxtrash
nutriment_amt = 5
nutriment_desc = list("protein" = 3, "iron" = 2)
atom_flags = NONE //starts closed
sealed = 1
opened_icon = 1

/obj/item/reagent_containers/food/snacks/brainsnax/Initialize(mapload)
Expand All @@ -6792,7 +6793,7 @@ END CITADEL CHANGE */
filling_color = "#7D5F46"
nutriment_amt = 3
nutriment_desc = list("candy" = 1)
atom_flags = NONE //starts closed
sealed = 1
custom_open_sound = 'sound/effects/pageturn2.ogg'
open_message = "You peel back the wrapping!"

Expand Down Expand Up @@ -6910,7 +6911,7 @@ END CITADEL CHANGE */
filling_color = "#E8C31E"
nutriment_amt = 5
nutriment_desc = list("salt" = 1, "chips" = 2)
atom_flags = NONE //starts closed
sealed = 1
custom_open_sound = 'sound/bureaucracy/papercrumple.ogg'
open_message = "You pull the package open!"

Expand Down Expand Up @@ -6970,7 +6971,7 @@ END CITADEL CHANGE */
filling_color = "#343834"
nutriment_amt = 12
nutriment_desc = list("dried raisins" = 6)
atom_flags = NONE //starts closed
sealed = 1
custom_open_sound = 'sound/misc/boxopen.ogg'
open_message = "You pop open the box!"

Expand Down Expand Up @@ -7002,7 +7003,7 @@ END CITADEL CHANGE */
center_of_mass = list("x"=17, "y"=16)
nutriment_amt = 6
nutriment_desc = list("bread" = 2, "sweetness" = 3)
atom_flags = NONE //starts closed
sealed = 1
custom_open_sound = 'sound/weapons/grenade_launcher.ogg'
open_message = "You pop open the tube!"

Expand Down

0 comments on commit e9c12ed

Please sign in to comment.