mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-21 23:56:38 +01:00
- 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>
26 lines
700 B
Plaintext
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
|