Skip to content

Commit

Permalink
Trickester Clown
Browse files Browse the repository at this point in the history
  • Loading branch information
EnderMage99 authored and azenkov committed Jan 12, 2025
1 parent c3123f7 commit d2df33e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
. = ..()
to_chat(src, "<h1>You are Clown Smiling at Me, A Combat Role Abnormality.</h1><br>\
<b>|Dark Carnival|: When you click on a tile which is outside your melee range, you will throw a knife towards that tile. Your knife will deal no damage to abnormalities, and will pass through them. \
If you hit a human with this knife, you will deal RED damage to them, slow them down massively and inflict 8 'Bleed'.<br>\
If you hit a human with this knife, you will deal RED damage to them, slow them down massively and inflict 8 'Bleed'. \
Also, You blades are able to bounch against walls! Each time they bounch against a wall, their damage will be doubled!<br>\
<br>\
|Jovial Cutting|: When you attack a dead human, you will start rapidly gutting them, which will deal WHITE damage to all humans watching. \
A few seconds after gutting that human, you will gib them.<br>\
Expand Down
30 changes: 21 additions & 9 deletions code/modules/projectiles/projectile/magic/abnormality.dm
Original file line number Diff line number Diff line change
Expand Up @@ -150,24 +150,36 @@
nodamage = TRUE
damage = 0
projectile_piercing = PASSMOB
ricochets_max = 2
ricochet_chance = 100
ricochet_decay_chance = 1
ricochet_decay_damage = 2 //Double damage after each bounce
ricochet_auto_aim_range = 3
ricochet_incidence_leeway = 0

/obj/projectile/clown_throw_rcorp/Initialize()
. = ..()
SpinAnimation()

/obj/projectile/clown_throw_rcorp/check_ricochet_flag(atom/A)
if(istype(A, /turf/closed))
return TRUE
return FALSE

/obj/projectile/clown_throw_rcorp/on_hit(atom/target, blocked = FALSE)
if(!ishuman(target))
if(ishuman(target))
damage = 10
nodamage = FALSE
var/mob/living/carbon/human/H = target
H.apply_lc_bleed(8)
H.add_movespeed_modifier(/datum/movespeed_modifier/clowned)
addtimer(CALLBACK(H, TYPE_PROC_REF(/mob, remove_movespeed_modifier), /datum/movespeed_modifier/clowned), 2 SECONDS, TIMER_UNIQUE | TIMER_OVERRIDE)
qdel(src)

if(istype(target, /mob/living))
to_chat(target, "The [src] flies right passed you!")
return

damage = 10
nodamage = FALSE
var/mob/living/carbon/human/H = target
H.apply_lc_bleed(8)
H.add_movespeed_modifier(/datum/movespeed_modifier/clowned)
addtimer(CALLBACK(H, TYPE_PROC_REF(/mob, remove_movespeed_modifier), /datum/movespeed_modifier/clowned), 2 SECONDS, TIMER_UNIQUE | TIMER_OVERRIDE)
..()
qdel(src)

/obj/projectile/bride_bolts
name = "mind bolts"
Expand Down

0 comments on commit d2df33e

Please sign in to comment.