mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 11:36:24 +01:00
402a17b1e8
* Refactors projectile parrying and makes it actually possible. * [MIRROR] Refactors projectile parrying and makes it actually possible. [MDB IGNORE] (#3885) * Refactors projectile parrying and makes it actually possible. * Update debuffs.dm * Update projectile.dm * conflict * how'd that get there --------- Co-authored-by: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Co-authored-by: SomeRandomOwl <2568378+SomeRandomOwl@users.noreply.github.com> Co-authored-by: Fluffles <piecopresident@gmail.com> --------- Co-authored-by: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Co-authored-by: NovaBot <154629622+NovaBot13@users.noreply.github.com> Co-authored-by: SomeRandomOwl <2568378+SomeRandomOwl@users.noreply.github.com> Co-authored-by: Fluffles <piecopresident@gmail.com> Co-authored-by: SpaceLoveSs13 <68121607+SpaceLoveSs13@users.noreply.github.com>
44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
/// Chilling projectile, hurts and slows you down
|
|
/obj/projectile/temp/watcher
|
|
name = "chilling blast"
|
|
icon_state = "ice_2"
|
|
damage = 10
|
|
damage_type = BURN
|
|
armor_flag = ENERGY
|
|
temperature = -50
|
|
|
|
/obj/projectile/temp/watcher/Initialize(mapload)
|
|
. = ..()
|
|
AddComponent(/datum/component/parriable_projectile)
|
|
|
|
/obj/projectile/temp/watcher/on_hit(mob/living/target, blocked = 0, pierce_hit)
|
|
. = ..()
|
|
if (!isliving(target))
|
|
return
|
|
apply_status(target)
|
|
|
|
/// Apply an additional on-hit effect
|
|
/obj/projectile/temp/watcher/proc/apply_status(mob/living/target)
|
|
target.apply_status_effect(/datum/status_effect/freezing_blast)
|
|
|
|
/// Lava projectile, ignites you
|
|
/obj/projectile/temp/watcher/magma_wing
|
|
name = "scorching blast"
|
|
icon_state = "lava"
|
|
damage = 5
|
|
temperature = 200
|
|
|
|
/obj/projectile/temp/watcher/magma_wing/apply_status(mob/living/target)
|
|
target.adjust_fire_stacks(0.1)
|
|
target.ignite_mob()
|
|
|
|
/// Freezing projectile, freezes you
|
|
/obj/projectile/temp/watcher/ice_wing
|
|
name = "freezing blast"
|
|
damage = 5
|
|
|
|
/obj/projectile/temp/watcher/ice_wing/apply_status(mob/living/target)
|
|
if(!HAS_TRAIT(target, TRAIT_RESISTCOLD))
|
|
return
|
|
target.apply_status_effect(/datum/status_effect/freon/watcher)
|