Files
b1029a24f8 Power Cell Rework + Energy Weapon Rebalance (& misc changes) (#7438)
- all cells in the game are now small, medium, large
- super, hyper capacity cells, device, and weapon cells are all removed
- cells now have standardized variants, some of which are printable by
R&D
- energy weapons rebalanced
- **advanced energy guns and stun revolvers removed** - use the new
modular weapon system and microfission cells.

---------

Co-authored-by: silicons <silicons@silicons.dev>
2025-12-24 12:15:01 +01:00

26 lines
700 B
Plaintext

//* This file is explicitly licensed under the MIT license. *//
//* Copyright (c) 2024 Citadel Station Developers *//
/**
* Electrical shocks; releases a shock on impact.
*/
/datum/projectile_effect/electrical_impulse
hook_impact = TRUE
/// in kj
var/shock_energy = 0
var/shock_damage = 0
var/shock_agony = 0
var/shock_flags = NONE
/datum/projectile_effect/electrical_impulse/on_impact(obj/projectile/proj, atom/target, impact_flags, def_zone)
target.electrocute(
shock_energy * proj.projectile_effect_multiplier,
shock_damage * proj.projectile_effect_multiplier,
shock_agony * proj.projectile_effect_multiplier,
shock_flags,
def_zone,
proj,
)
return impact_flags