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

32 lines
939 B
Plaintext

//* This file is explicitly licensed under the MIT license. *//
//* Copyright (c) 2024 Citadel Station Developers *//
/**
* Electrical probes; hits the target with an electrical stun probe
*/
/datum/projectile_effect/electrical_probe
hook_impact = TRUE
/// stun effect
var/status_effect_path = /datum/status_effect/taser_stun
/// stun effect duration
var/status_effect_duration = 5 SECONDS
/datum/projectile_effect/electrical_probe/on_impact(obj/projectile/proj, atom/target, impact_flags, def_zone)
if(!isliving(target))
return impact_flags
var/list/shock_results = target.electrocute(
0,
0,
0,
ELECTROCUTE_ACT_FLAG_SILENT,
def_zone,
proj,
)
var/efficiency = shock_results[ELECTROCUTE_ACT_ARG_EFFICIENCY]
var/mob/living/living_target = target
living_target.apply_status_effect(
status_effect_path,
status_effect_duration * efficiency * proj.projectile_effect_multiplier,
)
return impact_flags