Skip to content

Commit

Permalink
imrpovments to the mapper guncase, adds it to the talos
Browse files Browse the repository at this point in the history
  • Loading branch information
FalloutFalcon committed Oct 10, 2024
1 parent 8917ea1 commit d293ee9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 33 deletions.
48 changes: 21 additions & 27 deletions _maps/shuttles/inteq/inteq_talos.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -5311,12 +5311,21 @@
/obj/structure/sign/poster/retro/lasergun_new{
pixel_x = -32
},
/obj/item/gun/ballistic/shotgun/automatic/bulldog/inteq/no_mag{
pixel_x = -8;
pixel_y = 8
/obj/item/storage/guncase/mapper{
pixel_x = 2;
pixel_y = -2
},
/obj/item/gun/ballistic/shotgun/automatic/bulldog/inteq/no_mag{
pixel_x = -12
/obj/item/gun/ballistic/shotgun/automatic/bulldog/inteq/no_mag,
/obj/item/ammo_box/magazine/m12g_bulldog,
/obj/item/ammo_box/magazine/m12g_bulldog,
/obj/item/storage/guncase/mapper{
pixel_y = 2;
pixel_x = -2
},
/obj/item/gun/ballistic/shotgun/automatic/bulldog/inteq/no_mag,
/obj/item/ammo_box/magazine/m12g_bulldog,
/obj/item/ammo_box/magazine/m12g_bulldog{
pixel_y = -1
},
/turf/open/floor/plasteel/tech/grid,
/area/ship/security/armory)
Expand Down Expand Up @@ -6538,25 +6547,9 @@
/obj/structure/sign/poster/official/ion_carbine{
pixel_x = -32
},
/obj/item/ammo_box/magazine/m12g_bulldog{
pixel_x = 5;
pixel_y = 5
},
/obj/item/ammo_box/magazine/m12g_bulldog{
pixel_x = 5;
pixel_y = 5
},
/obj/item/ammo_box/magazine/m12g_bulldog{
pixel_x = -5
},
/obj/item/ammo_box/magazine/m12g_bulldog{
pixel_x = -5
},
/obj/item/ammo_box/magazine/co9mm{
pixel_x = 5
},
/obj/item/ammo_box/magazine/co9mm{
pixel_x = -5
/obj/item/toy/plush/moth/deadhead{
pixel_x = 3;
pixel_y = 3
},
/turf/open/floor/plasteel/tech/grid,
/area/ship/security/armory)
Expand Down Expand Up @@ -7419,9 +7412,10 @@
/obj/structure/rack,
/obj/effect/turf_decal/siding/thinplating/dark,
/obj/effect/decal/cleanable/dirt,
/obj/item/gun/ballistic/automatic/pistol/commander/inteq{
pixel_y = 5
},
/obj/item/storage/guncase/pistol/mapper,
/obj/item/gun/ballistic/automatic/pistol/commander/inteq,
/obj/item/ammo_box/magazine/co9mm,
/obj/item/ammo_box/magazine/co9mm,
/turf/open/floor/plasteel/tech/grid,
/area/ship/security/armory)
"Wr" = (
Expand Down
15 changes: 9 additions & 6 deletions code/game/objects/items/storage/guncases.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,20 @@
var/mag_count = 2
var/ammoless = TRUE
var/grab_loc = FALSE
var/holdable_items = list(
/obj/item/gun,
/obj/item/ammo_box,
/obj/item/stock_parts/cell/gun
)

/obj/item/storage/guncase/Initialize(mapload)
. = ..()
if(mapload && grab_loc)
var/items_eaten = 0
for(var/obj/item/I in loc)
if(I.w_class <= max_w_class)
if(I.w_class > max_w_class)
continue
if(is_type_in_list(I, holdable_items))
I.forceMove(src)
items_eaten++
if(items_eaten >= mag_count + 1)
Expand All @@ -37,11 +44,7 @@
var/datum/component/storage/STR = GetComponent(/datum/component/storage)
STR.max_items = max_items
STR.max_w_class = max_w_class
STR.set_holdable(list(
/obj/item/gun,
/obj/item/ammo_box,
/obj/item/stock_parts/cell/gun
))
STR.set_holdable(holdable_items)

/obj/item/storage/guncase/PopulateContents()
if(grab_loc)
Expand Down

0 comments on commit d293ee9

Please sign in to comment.