mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
Reworks mech mounted ion weapon (#18644)
* Reworks mech mounted ion weapon * Update code/game/mecha/equipment/weapons/weapons.dm Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com> Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com>
This commit is contained in:
@@ -96,13 +96,21 @@
|
||||
fire_sound = 'sound/weapons/lasercannonfire.ogg'
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/energy/ion
|
||||
equip_cooldown = 40
|
||||
name = "mkIV Ion Heavy Cannon"
|
||||
equip_cooldown = 4 SECONDS
|
||||
name = "mkIV Ion Heavy Scatter Cannon"
|
||||
desc = "An ion shotgun, that when fired gives the mecha a second of EMP shielding with the excess energy from the discharge."
|
||||
icon_state = "mecha_ion"
|
||||
origin_tech = "materials=4;combat=5;magnets=4"
|
||||
energy_drain = 120
|
||||
projectile = /obj/item/projectile/ion
|
||||
fire_sound = 'sound/weapons/laser.ogg'
|
||||
energy_drain = 300 // This is per shot + 1x cost, so 1500 per shotgun shot
|
||||
projectile = /obj/item/projectile/ion/weak
|
||||
projectiles_per_shot = 4
|
||||
variance = 35
|
||||
fire_sound = 'sound/weapons/ionrifle.ogg'
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/energy/ion/action()
|
||||
chassis.emp_proof = TRUE
|
||||
addtimer(VARSET_CALLBACK(chassis, emp_proof, FALSE), 1 SECONDS)
|
||||
return ..()
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/energy/tesla
|
||||
equip_cooldown = 35
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
var/lights_power = 6
|
||||
var/frozen = FALSE
|
||||
var/repairing = FALSE
|
||||
var/emp_proof = FALSE //If it is immune to emps
|
||||
|
||||
//inner atmos
|
||||
var/use_internal_tank = 0
|
||||
@@ -645,6 +646,8 @@
|
||||
|
||||
//TODO
|
||||
/obj/mecha/emp_act(severity)
|
||||
if(emp_proof)
|
||||
return
|
||||
if(get_charge())
|
||||
use_power((cell.charge/3)/(severity*2))
|
||||
take_damage(30 / severity, BURN, ENERGY, 1)
|
||||
|
||||
Reference in New Issue
Block a user