Skip to content

Commit 3c8e7b8

Browse files
Separating captain's laser and old retro laser types.
1 parent deb5ffc commit 3c8e7b8

File tree

10 files changed

+26
-12
lines changed

10 files changed

+26
-12
lines changed

code/datums/supplypacks/science.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
/obj/item/clothing/gloves/thick,
4444
/obj/item/clothing/shoes/color/black,
4545
/obj/item/scanner/gas,
46-
/obj/item/ore,
46+
/obj/item/ore_satchel,
4747
/obj/item/flashlight/lantern,
4848
/obj/item/tool/shovel,
4949
/obj/item/tool/pickaxe,

code/game/machinery/portable_turret.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
iconholder = 1
9696
eprojectile = /obj/item/projectile/beam
9797

98-
if(/obj/item/gun/energy/captain)
98+
if(/obj/item/gun/energy/retro/captain)
9999
iconholder = 1
100100

101101
if(/obj/item/gun/energy/lasercannon)

code/modules/mob/living/silicon/robot/robot.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@
700700
/mob/living/silicon/robot/Move(a, b, flag)
701701
. = ..()
702702
if(. && module && isturf(loc))
703-
var/obj/item/ore/orebag = locate() in get_held_items()
703+
var/obj/item/stack/material/ore/orebag = locate() in get_held_items()
704704
if(orebag)
705705
loc.attackby(orebag, src)
706706
module.handle_turf(loc, src)

code/modules/projectiles/gun.dm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
pickup_sound = 'sound/foley/pickup2.ogg'
4747
can_be_twohanded = TRUE // also checks one_hand_penalty
4848
needs_attack_dexterity = DEXTERITY_WEAPONS
49+
wieldsound = 'sound/weapons/TargetOn.ogg'
50+
unwieldsound = 'sound/weapons/TargetOff.ogg'
4951

5052
var/fire_verb = "fire"
5153
var/waterproof = FALSE
@@ -94,6 +96,7 @@
9496
/obj/item/gun/Initialize()
9597
// must have firemodes initialized prior to any update_icon_calls
9698
// including reconsider_single_icon(), which is done in ..()
99+
LAZYINITLIST(firemodes)
97100
for(var/i in 1 to firemodes.len)
98101
firemodes[i] = new /datum/firemode(src, firemodes[i])
99102
. = ..()

code/modules/projectiles/guns/energy/laser.dm

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,29 @@
5454
desc += " The optical pathway is melted and useless."
5555
projectile_type = null
5656

57-
/obj/item/gun/energy/captain
58-
name = "antique laser gun"
57+
/obj/item/gun/energy/retro
58+
name = "retro laser pistol"
5959
icon = 'icons/obj/guns/caplaser.dmi'
60+
desc = "A now-obsolete handheld laser weapon, still popular with some for ease of maintenance."
6061
icon_state = ICON_STATE_WORLD
61-
desc = "A rare weapon, handcrafted by a now defunct specialty manufacturer on Luna for a small fortune. It's certainly aged well."
62-
slot_flags = SLOT_LOWER_BODY //too unusually shaped to fit in a holster
6362
w_class = ITEM_SIZE_NORMAL
6463
projectile_type = /obj/item/projectile/beam
6564
origin_tech = null
6665
max_shots = 5 //to compensate a bit for self-recharging
6766
one_hand_penalty = 1 //a little bulky
67+
68+
/obj/item/gun/energy/retro/empty/Initialize(ml, material_key)
69+
. = ..()
70+
var/obj/item/cell/cell = get_cell()
71+
if(cell)
72+
cell.charge = 0
73+
update_icon()
74+
75+
/obj/item/gun/energy/retro/captain
76+
name = "antique laser gun"
77+
desc = "A rare weapon, handcrafted by a now defunct specialty manufacturer on Luna for a small fortune. It's certainly aged well."
6878
self_recharge = 1
79+
slot_flags = SLOT_LOWER_BODY //too unusually shaped to fit in a holster
6980

7081
/obj/item/gun/energy/lasercannon
7182
name = "laser cannon"

code/modules/xenoarcheaology/finds/find_types/guns.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
/obj/item/gun/energy/laser/practice,
4848
/obj/item/gun/energy/laser,
4949
/obj/item/gun/energy/xray,
50-
/obj/item/gun/energy/captain
50+
/obj/item/gun/energy/retro/captain
5151
)
5252
var/egun_icons = list(
5353
'icons/obj/guns/xenoarch/egun_1.dmi',

maps/away/bearcat/bearcat-2.dmm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
id_tag = "scraplock";
7676
name = "External Lockdown"
7777
},
78-
/obj/item/gun/energy/captain,
78+
/obj/item/gun/energy/retro/captain,
7979
/turf/floor/tiled/dark/usedup,
8080
/area/ship/scrap/command/bridge)
8181
"am" = (

maps/away/yacht/yacht.dmm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
/obj/structure/safe,
9393
/obj/item/chems/pill/cyanide,
9494
/obj/item/rig/medical/equipped,
95-
/obj/item/gun/energy/captain,
95+
/obj/item/gun/energy/retro/captain,
9696
/obj/effect/spider/stickyweb,
9797
/obj/effect/decal/cleanable/dirt/visible,
9898
/turf/floor/laminate/walnut,

maps/~mapsystem/maps_antagonism.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/datum/map
22
var/list/potential_theft_targets = list(
3-
"the captain's antique laser gun" = /obj/item/gun/energy/captain,
3+
"the captain's antique laser gun" = /obj/item/gun/energy/retro/captain,
44
"an RCD" = /obj/item/rcd,
55
"a jetpack" = /obj/item/tank/jetpack,
66
"a captain's jumpsuit" = /obj/item/clothing/jumpsuit/captain,

mods/content/corporate/random_ruins/exoplanet_ruins/oldpod/oldpod.dmm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@
266266
/area/map_template/oldpod)
267267
"aJ" = (
268268
/obj/abstract/landmark/corpse/pirate,
269-
/obj/item/gun/energy/captain,
269+
/obj/item/gun/energy/retro/captain,
270270
/obj/effect/decal/cleanable/dirt/visible,
271271
/obj/effect/decal/cleanable/dirt/visible,
272272
/turf/floor/tiled/monotile,

0 commit comments

Comments
 (0)