Skip to content

Commit

Permalink
some energy shotgun changes. (sojourn-13#4788)
Browse files Browse the repository at this point in the history
* Update abdicator.dm

No more unmaker for the abdicator.

* Update abdicator.dm

raises recoil from 0.3(handgun) to 1.0(carbine) to be more in line with the other energy shotgun

* yea

abdicator given 5 fire delay(from 0)
peacekeeper given 15 fire delay(from 20)

* Update abdicator.dm

* Update abdicator.dm

* Update abdicator.dm
  • Loading branch information
cdb-is-not-good authored Oct 7, 2023
1 parent c7924a8 commit 5bc0d1b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
31 changes: 29 additions & 2 deletions code/modules/projectiles/guns/energy/laser/abdicator.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ It also has more matterals then it takes to craft as a way to have a sunk cost.
origin_tech = list(TECH_COMBAT = 6, TECH_MAGNET = 8, TECH_ENGINEERING = 8) //With how hard it is to make? High value.
fire_delay = 20
charge_cost = 150
init_recoil = HANDGUN_RECOIL(0.3)
init_recoil = CARBINE_RECOIL(1)
damage_multiplier = 1 //already quite a bit lethal and dangerous with the burn damage and 'close range spray'.
blacklist_upgrades = list(/obj/item/gun_upgrade/mechanism/greyson_master_catalyst = TRUE)
gun_tags = list(GUN_LASER, GUN_ENERGY, GUN_SCOPE) //essentially a scattershot reductor.

proj_step_multiplier = 0.5 //2x bullet speed, mostly for flares so they dont crawl
Expand All @@ -38,6 +39,32 @@ It also has more matterals then it takes to craft as a way to have a sunk cost.
list(mode_name="flare shell", mode_desc="fires an illuminating flare of variable colors", projectile_type=/obj/item/projectile/bullet/flare/choas, charge_cost=100, icon="grenade"),
list(mode_name="grenade", mode_desc="fires an explosive synth-shell", projectile_type=/obj/item/projectile/bullet/rocket/railgun, charge_cost=30000, icon="grenade")
)

consume_cell = FALSE
twohanded = TRUE
serial_type = "AG"

/obj/item/gun/energy/laser/railgun/abdicator/consume_next_projectile()
if(!cell) return null
if(!ispath(projectile_type)) return null
if(consume_cell && !cell.checked_use(charge_cost))
visible_message(SPAN_WARNING("\The [cell] of \the [src] burns out!"))
qdel(cell)
cell = null
playsound(loc, 'sound/weapons/Egloves.ogg', 50, 1, -1)
new /obj/effect/decal/cleanable/ash(get_turf(src))
return new projectile_type(src)
else if(!consume_cell && !cell.checked_use(charge_cost))
return null
else
return new projectile_type(src)

/obj/item/gun/energy/laser/railgun/abdicator/attackby(obj/item/I, mob/user)
..()
if(I.has_quality(QUALITY_BOLT_TURNING))
if(I.use_tool(user, src, WORKTIME_SLOW, QUALITY_BOLT_TURNING, FAILCHANCE_VERY_HARD, required_stat = STAT_MEC))
if(consume_cell)
consume_cell = FALSE
to_chat(user, SPAN_NOTICE("You secure the safety bolts and tune down the capacitor to safe levels, preventing the weapon from destroying empty cells for use as ammuniton."))
else
consume_cell = TRUE
to_chat(user, SPAN_NOTICE("You loosen the safety bolts and overclock the capacitor to unsafe levels, allowing the weapon to destroy empty cells for use as ammunition."))
4 changes: 2 additions & 2 deletions code/modules/projectiles/guns/energy/laser/peacekeeper.dm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/obj/item/gun/energy/peacekeeper
name = "\"Peacekeeper\" energy shotgun"
desc = "The \"Peacekeeper\" enegry shotgun is a Marshal made weapon, specializing in blasting high-powered electrodes from its cell's charge.\
Despite appearing to be made in a hurry the gun is incredibly versitile, though it risks burning its cell out on lethal firemodes."
Despite appearing to be made in a hurry the gun is incredibly versitile."
icon = 'icons/obj/guns/energy/peacekeeper.dmi'
icon_state = "peacekeeper"
item_state = "peacekeeper"
Expand All @@ -13,7 +13,7 @@
cell_type = /obj/item/cell/medium
origin_tech = list(TECH_COMBAT = 5, TECH_MATERIAL = 2)
matter = list(MATERIAL_PLASTEEL = 12, MATERIAL_STEEL = 8, MATERIAL_WOOD = 10, MATERIAL_SILVER = 4)
fire_delay = 20
fire_delay = 15
init_recoil = CARBINE_RECOIL(1)
damage_multiplier = 1
penetration_multiplier = 0.7
Expand Down

0 comments on commit 5bc0d1b

Please sign in to comment.