Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Xander3359 committed May 7, 2024
2 parents 1bd7261 + 4d1099c commit 528ae0f
Show file tree
Hide file tree
Showing 21 changed files with 4,747 additions and 3,291 deletions.
2,452 changes: 1,596 additions & 856 deletions _maps/map_files/Magmoor_Digsite_IV/Magmoor_Digsite_IV.dmm

Large diffs are not rendered by default.

5,362 changes: 3,030 additions & 2,332 deletions _maps/map_files/Orion_Military_Outpost/orionoutpost.dmm

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions code/game/area/magmoor_digsite.dm
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,12 @@
name = "Engineering Lobby & Storage"
icon_state = "lava_engi_storage"

/area/magmoor/engi/garage
name = "Engineering Garage"
ceiling = CEILING_DEEP_UNDERGROUND_METAL
icon_state = "lava_eng1"
minimap_color = MINIMAP_AREA_ENGI_CAVE

//Security

/area/magmoor/security
Expand Down
19 changes: 19 additions & 0 deletions code/game/objects/items/stacks/stack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@
O.color = color
use(R.req_amount * multiplier)

if(isitemstack(O))
var/obj/item/stack/stack = O
stack.merge_with_stack_in_hands(user)

if(QDELETED(O))
return //It's a stack and has already been merged

Expand Down Expand Up @@ -399,5 +403,20 @@
/obj/item/stack/proc/select_radial(mob/user)
return TRUE

/**
Merges stack into the one that user is currently holding in their left or right hand.
Returns TRUE if the stack was merged, FALSE otherwise.
*/
/obj/item/stack/proc/merge_with_stack_in_hands(mob/user)
var/obj/item/stack/stack_in_hands = null
if(istype(user.l_hand, merge_type))
stack_in_hands = user.l_hand
else if(istype(user.r_hand, merge_type))
stack_in_hands = user.r_hand
if(stack_in_hands && merge(stack_in_hands))
return TRUE
return FALSE


#undef STACK_CHECK_CARDINALS
#undef STACK_CHECK_ADJACENT
31 changes: 9 additions & 22 deletions code/game/objects/items/storage/pouch.dm
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,7 @@
new /obj/item/explosive/grenade/chem_grenade/razorburn_small(src)
new /obj/item/explosive/grenade/chem_grenade/razorburn_large(src)

/obj/item/storage/pouch/explosive/antigas/Initialize(mapload)
. = ..()
/obj/item/storage/pouch/explosive/antigas/PopulateContents()
new /obj/item/explosive/grenade/smokebomb/antigas(src)
new /obj/item/explosive/grenade/smokebomb/antigas(src)
new /obj/item/explosive/grenade/smokebomb/antigas(src)
Expand Down Expand Up @@ -496,23 +495,17 @@
new /obj/item/explosive/grenade/flashbang/stun(src)
new /obj/item/explosive/grenade/flashbang/stun(src)

/obj/item/storage/pouch/grenade/standard/Initialize(mapload)
. = ..()
/obj/item/storage/pouch/grenade/standard/PopulateContents()
new /obj/item/explosive/grenade(src)
new /obj/item/explosive/grenade(src)
new /obj/item/explosive/grenade(src)
new /obj/item/explosive/grenade/bullet/laser(src)
new /obj/item/explosive/grenade/bullet/laser(src)
new /obj/item/explosive/grenade/incendiary(src)

/obj/item/storage/pouch/grenade/emp/Initialize(mapload)
. = ..()
new /obj/item/explosive/grenade/emp(src)
new /obj/item/explosive/grenade/emp(src)
new /obj/item/explosive/grenade/emp(src)
new /obj/item/explosive/grenade/emp(src)
new /obj/item/explosive/grenade/emp(src)
new /obj/item/explosive/grenade/emp(src)
/obj/item/storage/pouch/grenade/emp
fill_type = /obj/item/explosive/grenade/emp
fill_number = 6

/obj/item/storage/pouch/grenade/som
desc = "It can contain grenades. This one looks to be made out of traditional SOM leather."
Expand All @@ -538,23 +531,17 @@
new /obj/item/explosive/grenade/som(src)
new /obj/item/explosive/grenade/som(src)

/obj/item/storage/pouch/grenade/som/standard/Initialize(mapload)
. = ..()
/obj/item/storage/pouch/grenade/som/standard/PopulateContents()
new /obj/item/explosive/grenade/som(src)
new /obj/item/explosive/grenade/som(src)
new /obj/item/explosive/grenade/som(src)
new /obj/item/explosive/grenade/som(src)
new /obj/item/explosive/grenade/incendiary/som(src)
new /obj/item/explosive/grenade/incendiary/som(src)

/obj/item/storage/pouch/grenade/som/emp/Initialize(mapload)
. = ..()
new /obj/item/explosive/grenade/emp(src)
new /obj/item/explosive/grenade/emp(src)
new /obj/item/explosive/grenade/emp(src)
new /obj/item/explosive/grenade/emp(src)
new /obj/item/explosive/grenade/emp(src)
new /obj/item/explosive/grenade/emp(src)
/obj/item/storage/pouch/grenade/som/emp
fill_type = /obj/item/explosive/grenade/emp
fill_number = 6

/obj/item/storage/pouch/medkit
name = "medkit pouch"
Expand Down
3 changes: 1 addition & 2 deletions code/game/objects/items/storage/secure.dm
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@
throw_range = 4
w_class = WEIGHT_CLASS_BULKY

/obj/item/storage/secure/briefcase/Initialize(mapload)
. = ..()
/obj/item/storage/secure/briefcase/PopulateContents()
new /obj/item/paper(src)
new /obj/item/tool/pen(src)

Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/structures/crates_lockers/closets.dm
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
return ..()


//USE THIS TO FILL IT, NOT INITIALIZE OR NEW
///USE THIS TO FILL IT, NOT INITIALIZE OR NEW
/obj/structure/closet/proc/PopulateContents()
return

Expand Down
21 changes: 7 additions & 14 deletions code/game/objects/structures/crates_lockers/closets/fitness.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
icon_state = "mixed"
icon_closed = "mixed"

/obj/structure/closet/athletic_mixed/Initialize(mapload)
. = ..()
/obj/structure/closet/athletic_mixed/PopulateContents()
new /obj/item/clothing/under/shorts/grey(src)
new /obj/item/clothing/under/shorts/black(src)
new /obj/item/clothing/under/shorts/red(src)
Expand All @@ -27,8 +26,7 @@
name = "boxing gloves"
desc = "It's a storage unit for gloves for use in the boxing ring."

/obj/structure/closet/boxinggloves/Initialize(mapload)
. = ..()
/obj/structure/closet/boxinggloves/PopulateContents()
new /obj/item/clothing/gloves/heldgloves/boxing/blue(src)
new /obj/item/clothing/gloves/heldgloves/boxing/green(src)
new /obj/item/clothing/gloves/heldgloves/boxing/yellow(src)
Expand All @@ -39,8 +37,7 @@
name = "mask closet"
desc = "IT'S A STORAGE UNIT FOR FIGHTER MASKS OLE!"

/obj/structure/closet/masks/Initialize(mapload)
. = ..()
/obj/structure/closet/masks/PopulateContents()
new /obj/item/clothing/mask/luchador(src)
new /obj/item/clothing/mask/luchador/rudos(src)
new /obj/item/clothing/mask/luchador/tecnicos(src)
Expand All @@ -52,8 +49,7 @@
icon_state = "red"
icon_closed = "red"

/obj/structure/closet/lasertag/red/Initialize(mapload)
. = ..()
/obj/structure/closet/lasertag/red/PopulateContents()
new /obj/item/clothing/suit/redtag(src)
new /obj/item/clothing/suit/redtag(src)

Expand All @@ -64,8 +60,7 @@
icon_state = "blue"
icon_closed = "blue"

/obj/structure/closet/lasertag/blue/Initialize(mapload)
. = ..()
/obj/structure/closet/lasertag/blue/PopulateContents()
new /obj/item/clothing/suit/bluetag(src)
new /obj/item/clothing/suit/bluetag(src)

Expand All @@ -75,8 +70,7 @@
icon_state = "mixed"
icon_closed = "mixed"

/obj/structure/closet/basketball/Initialize(mapload)
. = ..()
/obj/structure/closet/basketball/PopulateContents()
new /obj/item/clothing/under/shorts/grey(src)
new /obj/item/clothing/under/shorts/black(src)
new /obj/item/clothing/under/shorts/red(src)
Expand All @@ -89,8 +83,7 @@
icon_state = "mixed"
icon_closed = "mixed"

/obj/structure/closet/swimsuit/Initialize(mapload)
. = ..()
/obj/structure/closet/swimsuit/PopulateContents()
new /obj/item/clothing/under/swimsuit/red(src)
new /obj/item/clothing/under/swimsuit/black(src)
new /obj/item/clothing/under/swimsuit/blue(src)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
icon_state = "black"
icon_closed = "black"

/obj/structure/closet/gmcloset/Initialize(mapload)
. = ..()
/obj/structure/closet/gmcloset/PopulateContents()
new /obj/item/clothing/head/that(src)
new /obj/item/clothing/head/that(src)
new /obj/item/clothing/head/hairflower
Expand All @@ -38,8 +37,7 @@
icon_state = "mixed"
icon_closed = "mixed"

/obj/structure/closet/jcloset/Initialize(mapload)
. = ..()
/obj/structure/closet/jcloset/PopulateContents()
new /obj/item/clothing/under/rank/janitor(src)
new /obj/item/clothing/gloves/black(src)
new /obj/item/clothing/head/soft/purple(src)
Expand All @@ -62,8 +60,7 @@
icon_state = "blue"
icon_closed = "blue"

/obj/structure/closet/lawcloset/Initialize(mapload)
. = ..()
/obj/structure/closet/lawcloset/PopulateContents()
new /obj/item/clothing/under/lawyer/female(src)
new /obj/item/clothing/under/lawyer/black(src)
new /obj/item/clothing/under/lawyer/red(src)
Expand Down
23 changes: 6 additions & 17 deletions code/game/objects/structures/crates_lockers/closets/l3closet.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
icon_closed = "bio"
icon_opened = "bioopen"

/obj/structure/closet/l3closet/Initialize(mapload)
. = ..()
/obj/structure/closet/l3closet/PopulateContents()
new /obj/item/clothing/suit/bio_suit( src )
new /obj/item/clothing/head/bio_hood( src )

Expand All @@ -16,9 +15,7 @@
icon_closed = "bio_general"
icon_opened = "bio_generalopen"

/obj/structure/closet/l3closet/general/Initialize(mapload)
. = ..()
contents = list()
/obj/structure/closet/l3closet/general/PopulateContents()
new /obj/item/clothing/suit/bio_suit( src )
new /obj/item/clothing/head/bio_hood( src )

Expand All @@ -28,9 +25,7 @@
icon_closed = "bio_virology"
icon_opened = "bio_virologyopen"

/obj/structure/closet/l3closet/virology/Initialize(mapload)
. = ..()
contents = list()
/obj/structure/closet/l3closet/virology/PopulateContents()
new /obj/item/clothing/suit/bio_suit/virology( src )
new /obj/item/clothing/head/bio_hood/virology( src )
new /obj/item/clothing/mask/breath(src)
Expand All @@ -42,9 +37,7 @@
icon_closed = "bio_security"
icon_opened = "bio_securityopen"

/obj/structure/closet/l3closet/security/Initialize(mapload)
. = ..()
contents = list()
/obj/structure/closet/l3closet/security/PopulateContents()
new /obj/item/clothing/suit/bio_suit/security( src )
new /obj/item/clothing/head/bio_hood/security( src )

Expand All @@ -54,9 +47,7 @@
icon_closed = "bio_janitor"
icon_opened = "bio_janitoropen"

/obj/structure/closet/l3closet/janitor/Initialize(mapload)
. = ..()
contents = list()
/obj/structure/closet/l3closet/janitor/PopulateContents()
new /obj/item/clothing/suit/bio_suit/janitor( src )
new /obj/item/clothing/head/bio_hood/janitor( src )

Expand All @@ -66,8 +57,6 @@
icon_closed = "bio_scientist"
icon_opened = "bio_scientistopen"

/obj/structure/closet/l3closet/scientist/Initialize(mapload)
. = ..()
contents = list()
/obj/structure/closet/l3closet/scientist/PopulateContents()
new /obj/item/clothing/suit/bio_suit/scientist( src )
new /obj/item/clothing/head/bio_hood/scientist( src )
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
icon_off = "cabinetdetective_broken"


/obj/structure/closet/secure_closet/bar/Initialize(mapload)
. = ..()
/obj/structure/closet/secure_closet/bar/PopulateContents()
new /obj/item/reagent_containers/food/drinks/cans/beer( src )
new /obj/item/reagent_containers/food/drinks/cans/beer( src )
new /obj/item/reagent_containers/food/drinks/cans/beer( src )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
icon_off = "secureceoff"


/obj/structure/closet/secure_closet/engineering_chief/Initialize(mapload)
. = ..()
/obj/structure/closet/secure_closet/engineering_chief/PopulateContents()
new /obj/item/armor_module/storage/uniform/webbing(src)
new /obj/item/armor_module/storage/uniform/brown_vest(src)
new /obj/item/clothing/head/hardhat/white(src)
Expand Down Expand Up @@ -46,8 +45,7 @@
icon_off = "secureengelecoff"


/obj/structure/closet/secure_closet/engineering_electrical/Initialize(mapload)
. = ..()
/obj/structure/closet/secure_closet/engineering_electrical/PopulateContents()
new /obj/item/clothing/gloves/insulated(src)
new /obj/item/clothing/gloves/insulated(src)
new /obj/item/clothing/gloves/insulated(src)
Expand All @@ -73,8 +71,7 @@
icon_off = "secureengweldoff"


/obj/structure/closet/secure_closet/engineering_welding/Initialize(mapload)
. = ..()
/obj/structure/closet/secure_closet/engineering_welding/PopulateContents()
new /obj/item/clothing/head/welding(src)
new /obj/item/clothing/head/welding(src)
new /obj/item/clothing/head/welding(src)
Expand All @@ -95,8 +92,7 @@
icon_broken = "secureengbroken"
icon_off = "secureengoff"

/obj/structure/closet/secure_closet/engineering_personal/Initialize(mapload)
. = ..()
/obj/structure/closet/secure_closet/engineering_personal/PopulateContents()
new /obj/item/armor_module/storage/uniform/brown_vest(src)
new /obj/item/storage/toolbox/mechanical(src)
if(!is_ground_level(z))
Expand Down Expand Up @@ -136,8 +132,7 @@
icon_off = "secureatmoff"


/obj/structure/closet/secure_closet/atmos_personal/Initialize(mapload)
. = ..()
/obj/structure/closet/secure_closet/atmos_personal/PopulateContents()
if (prob(70))
new /obj/item/armor_module/storage/uniform/brown_vest(src)
else
Expand Down
Loading

0 comments on commit 528ae0f

Please sign in to comment.