Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Soulless (a new quirk) #3516

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions monkestation/code/datums/quirks/negative_quirks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -240,3 +240,30 @@
*/
/datum/quirk/tunnel_vision/remove()
quirk_holder.remove_fov_trait("tunnel vision quirk")

/datum/quirk/soullessdoor
name = "Soulless"
desc = "How come the door cameras can't see me!"
value = -2
icon = FA_ICON_GHOST
gain_text = span_notice("You have trouble with the doors not opening when you approach.")
lose_text = span_notice("You feel like the doors can see you again.. what.")

/datum/quirk/soullessdoor/add()
RegisterSignal(quirk_holder, COMSIG_CARBON_BUMPED_AIRLOCK_OPEN, PROC_REF(on_bump))

/datum/quirk/soullessdoor/remove()
UnregisterSignal(quirk_holder, COMSIG_CARBON_BUMPED_AIRLOCK_OPEN)

/datum/quirk/soullessdoor/proc/on_bump(mob/living/carbon/user, /obj/machinery/door/airlock/bumped)
if(bumped.density && ishuman(user) && prob(95))
if(bumped.Adjacent(user))
playsound(src, 'sound/effects/bang.ogg', 25, TRUE, mixer_channel = CHANNEL_SOUND_EFFECTS)
if(!istype(user.head, /obj/item/clothing/head/helmet))
user.visible_message(span_danger("[user] headbutts \the [bumped]."), span_userdanger("You headbutt \the [bumped]!"))
user.Paralyze(1)
user.apply_damage(10, BRUTE, BODY_ZONE_HEAD)
user.adjustOrganLoss(ORGAN_SLOT_BRAIN, 10)
else
visible_message(span_danger("[user] headbutts \the [bumped]. Good thing [user.p_theyre()] wearing a helmet."))

Check failure on line 268 in monkestation/code/datums/quirks/negative_quirks.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined proc: "visible_message" on /datum/quirk/soullessdoor

Check failure on line 268 in monkestation/code/datums/quirks/negative_quirks.dm

View workflow job for this annotation

GitHub Actions / Run Linters

OD0404: Type /datum/quirk/soullessdoor does not have a proc named "visible_message"

Check failure on line 268 in monkestation/code/datums/quirks/negative_quirks.dm

View workflow job for this annotation

GitHub Actions / Run Linters

OD0011: attempt to reference r-value
return STOP_BUMP
Loading