Skip to content

Commit

Permalink
minor turret balancing
Browse files Browse the repository at this point in the history
  • Loading branch information
Erikafox committed Oct 7, 2024
1 parent 3643e63 commit ff515e0
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions code/game/machinery/porta_turret/portable_turret.dm
Original file line number Diff line number Diff line change
Expand Up @@ -798,12 +798,13 @@ DEFINE_BITFIELD(turret_flags, list(

/obj/machinery/porta_turret/ship
installation = null
max_integrity = 300
max_integrity = 200
always_up = 1
use_power = ACTIVE_POWER_USE
active_power_usage = ACTIVE_DRAW_MINIMAL
has_cover = 0
scan_range = 9
req_ship_access = TRUE
stun_projectile = /obj/projectile/beam/disabler
lethal_projectile = /obj/projectile/beam/laser
lethal_projectile_sound = 'sound/weapons/plasma_cutter.ogg'
Expand All @@ -824,7 +825,7 @@ DEFINE_BITFIELD(turret_flags, list(
. = ..()
if(in_range(user, src) || isobserver(user))
if(!(machine_stat & BROKEN))
. += "<span class='notice'>Its reports that it's integrity is currently [(obj_integrity / max_integrity) * 100] percent.</span>"
. += "<span class='notice'>[src] reports its integrity is currently [round(obj_integrity / max_integrity) * 100] percent.</span>"

/obj/machinery/porta_turret/ship/weak
max_integrity = 120
Expand All @@ -849,6 +850,8 @@ DEFINE_BITFIELD(turret_flags, list(
name = "Sharplite Defense Turret"
desc = "A cheap and effective turret designed by Sharplite and purchased and installed on most Nanotrasen Vessels."
faction = list(FACTION_PLAYER_NANOTRASEN, "turret")
max_integrity = 160
integrity_failure = 0.6
icon_state = "standard_lethal"
base_icon_state = "standard"
stun_projectile = /obj/projectile/beam/disabler/sharplite
Expand All @@ -866,20 +869,19 @@ DEFINE_BITFIELD(turret_flags, list(
lethal_projectile_sound = 'sound/weapons/gun/laser/nt-fire.ogg'
stun_projectile_sound = 'sound/weapons/taser2.ogg'


/obj/machinery/porta_turret/ship/nt/heavy
name = "Sharplite Defense Cannon"
desc = "A heavy laser mounting designed by Sharplite for usage on Nanotrasen vessels."
lethal_projectile = /obj/projectile/beam/laser/heavylaser/sharplite
lethal_projectile_sound = 'sound/weapons/lasercannonfire.ogg'
max_integrity = 250

/obj/machinery/porta_turret/ship/nt/pulse
name = "Sharplite Pulse Cannon"
desc = "A pulse cannon mounting designed by Sharplite. Not sold to any purchasers and exclusively used on Nanotrasen Vessels."
lethal_projectile = /obj/projectile/beam/pulse/sharplite_turret
lethal_projectile_sound = 'sound/weapons/gun/laser/heavy_laser.ogg'


max_integrity = 250

/* Syndicate Turrets */

Expand All @@ -903,8 +905,10 @@ DEFINE_BITFIELD(turret_flags, list(
stun_projectile_sound = 'sound/weapons/taser.ogg'
lethal_projectile = /obj/projectile/beam/laser/heavylaser
lethal_projectile_sound = 'sound/weapons/lasercannonfire.ogg'
max_integrity = 300

/* Inteq Turrets */
//slower rof, higher damage + range

/obj/machinery/porta_turret/ship/inteq
name = "Vanguard Turret"
Expand All @@ -913,8 +917,9 @@ DEFINE_BITFIELD(turret_flags, list(
stun_projectile_sound = 'sound/weapons/gun/rifle/skm.ogg'
lethal_projectile = /obj/projectile/bullet/a762_40
lethal_projectile_sound = 'sound/weapons/gun/rifle/skm.ogg'
scan_range = 8
scan_range = 9
shot_delay = 20
integrity_failure = 0.4
faction = list(FACTION_PLAYER_INTEQ, "turret")

/obj/machinery/porta_turret/ship/inteq/light
Expand All @@ -925,7 +930,7 @@ DEFINE_BITFIELD(turret_flags, list(
lethal_projectile = /obj/projectile/bullet/c10mm
lethal_projectile_sound = 'sound/weapons/gun/smg/vector_fire.ogg'
subsystem_type = /datum/controller/subsystem/processing/fastprocess //turns out if you have a shot delay below what SSmachines fires at you need to use a different subsystem
scan_range = 4
scan_range = 5
shot_delay = 5

/obj/machinery/porta_turret/ship/inteq/heavy
Expand All @@ -944,6 +949,7 @@ DEFINE_BITFIELD(turret_flags, list(
faction = list(FACTION_PLAYER_SOLCON, "turret")

/* Pan Gezena Federation Turrets */
//midline but hitscan

/obj/machinery/porta_turret/ship/pgf
name = "Etherbor Defensive Mount"
Expand All @@ -955,6 +961,8 @@ DEFINE_BITFIELD(turret_flags, list(
lethal_projectile_sound = 'sound/weapons/gun/energy/kalixsmg.ogg'
icon_state = "standard_lethal"
base_icon_state = "standard"
max_integrity = 250
integrity_failure = 0.4

/obj/machinery/porta_turret/ship/pgf/light
name = "Etherbor Deterrent System"
Expand Down

0 comments on commit ff515e0

Please sign in to comment.