Skip to content

Commit

Permalink
roomba spam
Browse files Browse the repository at this point in the history
  • Loading branch information
Helg2 committed Dec 21, 2024
1 parent bd0991e commit 3636bb9
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions code/__DEFINES/equipment.dm
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@
//flags_storage
///If a storage container can be restocked into a vendor
#define BYPASS_VENDOR_CHECK (1<<0)
///Upon being put into cryo, this storage won't store it's contents into the cryo
#define BYPASS_CRYO_CHECK (1<<1)

//flags_id
///If you can get buy a loadout
Expand Down
1 change: 1 addition & 0 deletions code/_globalvars/bitfields.dm
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ GLOBAL_LIST_INIT(bitfields, list(
),
"flags_storage" = list(
"BYPASS_VENDOR_CHECK" = BYPASS_VENDOR_CHECK,
"BYPASS_CRYO_CHECK" = BYPASS_CRYO_CHECK,
),
"flags_id" = list(
"CAN_BUY_LOADOUT" = CAN_BUY_LOADOUT,
Expand Down
3 changes: 2 additions & 1 deletion code/game/objects/items/storage/boxes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@
max_storage_space = 14
spawn_type = /obj/item/explosive/grenade/flare
spawn_number = 14
flags_storage = BYPASS_CRYO_CHECK

/obj/item/storage/box/m94/update_icon_state()
. = ..()
Expand Down Expand Up @@ -408,14 +409,14 @@
spawn_type = /obj/item/lightstick/red
spawn_number = 7


/obj/item/storage/box/MRE
name = "\improper TGMC MRE"
desc = "Meal Ready-to-Eat, meant to be consumed in the field, and has an expiration that is two decades past a marine's average combat life expectancy."
icon_state = "mealpack"
w_class = WEIGHT_CLASS_SMALL
can_hold = list(/obj/item/reagent_containers/food/snacks/packaged_meal)
storage_slots = 4
flags_storage = BYPASS_CRYO_CHECK
foldable = 0
var/isopened = 0
///the item left behind when this is used up
Expand Down
1 change: 1 addition & 0 deletions code/game/objects/items/storage/fancy.dm
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
w_class = WEIGHT_CLASS_TINY
throwforce = 2
flags_equip_slot = ITEM_SLOT_BELT
flags_storage = BYPASS_CRYO_CHECK
max_storage_space = 18
storage_slots = 18
can_hold = list(
Expand Down
1 change: 1 addition & 0 deletions code/game/objects/items/storage/firstaid.dm
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@
storage_slots = null
use_sound = 'sound/items/pillbottle.ogg'
max_storage_space = 16
flags_storage = BYPASS_CRYO_CHECK
greyscale_config = /datum/greyscale_config/pillbottle
greyscale_colors = "#d9cd07#f2cdbb" //default colors
refill_types = list(/obj/item/storage/pill_bottle)
Expand Down
1 change: 1 addition & 0 deletions code/game/objects/items/storage/holsters.dm
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@
name = "flare pouch"
desc = "A pouch designed to hold flares and a single flaregun. Refillable with a M94 flare pack."
flags_equip_slot = ITEM_SLOT_POCKET
flags_storage = BYPASS_CRYO_CHECK
storage_slots = 28
max_storage_space = 28
icon = 'icons/Marine/marine-pouches.dmi'
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/storage/pill_packets.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
var/trash_item = /obj/item/trash/pillpacket
refill_types = null
refill_sound = null
flags_storage = BYPASS_VENDOR_CHECK
flags_storage = BYPASS_VENDOR_CHECK|BYPASS_CRYO_CHECK

/obj/item/storage/pill_bottle/packet/remove_from_storage(obj/item/item, atom/new_location, mob/user)
. = ..()
Expand Down
5 changes: 3 additions & 2 deletions code/game/objects/machinery/cryopod.dm
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,9 @@
GLOB.cryoed_item_list += src

/obj/item/storage/store_in_cryo()
for(var/obj/item/I AS in src)
I.store_in_cryo()
if(!(flags_storage & BYPASS_CRYO_CHECK))
for(var/obj/item/I AS in src)
I.store_in_cryo()
return ..()

/obj/machinery/cryopod/attackby(obj/item/I, mob/user, params)
Expand Down

0 comments on commit 3636bb9

Please sign in to comment.