Skip to content

Commit

Permalink
yea i dont think this needs a comp
Browse files Browse the repository at this point in the history
  • Loading branch information
FalloutFalcon committed Nov 17, 2023
1 parent 253ed39 commit 8bbfa8b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 36 deletions.
34 changes: 0 additions & 34 deletions code/datums/components/outline.dm
Original file line number Diff line number Diff line change
Expand Up @@ -51,37 +51,3 @@
A.visible_message("<span class='notice'>The outline around [A] is washed away!")
qdel(src)

/datum/component/prism_outline
dupe_mode = COMPONENT_DUPE_UNIQUE_PASSARGS

var/permanent

/datum/component/prism_outline/Initialize(perm = FALSE)
if(!isatom(parent))
return COMPONENT_INCOMPATIBLE
src.permanent = perm
RegisterSignal(parent, COMSIG_PARENT_EXAMINE, PROC_REF(OnExamine))
RegisterSignal(parent, COMSIG_PARENT_ATTACKBY, PROC_REF(OnAttackBy))

var/atom/movable/A = parent
A.add_filter("prism-wine", 2, list("type"="outline", "color"="#8FD7DF", "size"=1))

/datum/component/prism_outline/Destroy()
var/atom/movable/A = parent
A.remove_filter("prism-wine")
return ..()

/datum/component/prism_outline/InheritComponent(datum/component/C, i_am_original, perm)
if(!i_am_original)
return
if(C)
var/datum/component/prism_outline/other = C
permanent = other.permanent
else
permanent = perm

/datum/component/prism_outline/proc/OnExamine(datum/source, mob/user, atom/thing)
to_chat(user, "<span class='warning'>They light seems to bounce off them!</span>")

/datum/component/prism_outline/proc/OnAttackBy(datum/source, obj/item/I, mob/user, params)
return
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,14 @@
ADD_TRAIT(M, TRAIT_REFLECTIVE, "trickwine")
if(M.physiology.burn_mod <= initial(M.physiology.burn_mod))
M.physiology.burn_mod *= 0.5
M.AddComponent(/datum/component/prism_outline)
M.add_filter("prism-wine", 2, list("type"="outline", "color"="#8FD7DF", "size"=1))
M.visible_message("<span class='warning'>[M] seems to shimmer with power!</span>")

/datum/reagent/consumable/ethanol/trickwine/prism_wine/on_mob_end_metabolize(mob/living/carbon/human/M)
REMOVE_TRAIT(M, TRAIT_REFLECTIVE, "trickwine")
if(M.physiology.burn_mod > initial(M.physiology.burn_mod))
M.physiology.burn_mod *= 2
M.remove_filter("prism-wine")
M.visible_message("<span class='warning'>[M] has returned to normal!</span>")
..()

Expand Down
2 changes: 1 addition & 1 deletion shiptest.dme
Original file line number Diff line number Diff line change
Expand Up @@ -1954,8 +1954,8 @@
#include "code\modules\clothing\outfits\gezena.dm"
#include "code\modules\clothing\outfits\plasmaman.dm"
#include "code\modules\clothing\outfits\solgov.dm"
#include "code\modules\clothing\outfits\syndicate.dm"
#include "code\modules\clothing\outfits\standard.dm"
#include "code\modules\clothing\outfits\syndicate.dm"
#include "code\modules\clothing\outfits\vv_outfit.dm"
#include "code\modules\clothing\shoes\_shoes.dm"
#include "code\modules\clothing\shoes\bananashoes.dm"
Expand Down

0 comments on commit 8bbfa8b

Please sign in to comment.