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 4 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, PROF_REF(on_bump))

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

View workflow job for this annotation

GitHub Actions / Run Linters

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

Check failure on line 253 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 "PROF_REF"

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

View workflow job for this annotation

GitHub Actions / Run Linters

OD0404: Unknown identifier "on_bump"
wraith-54321 marked this conversation as resolved.
Show resolved Hide resolved

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

/datum/quirk/soullessdoor/proc/on_bump(mob/living/carbon/user)
if(ishuman(user) && prob(95) && density)

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

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "density"

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

View workflow job for this annotation

GitHub Actions / Run Linters

OD0404: Unknown identifier "density"
if(Adjacent(user))

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

View workflow job for this annotation

GitHub Actions / Run Linters

undefined proc: "Adjacent" on /datum/quirk/soullessdoor
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 airlock."), span_userdanger("You headbutt the airlock!"))
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 airlock. 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
return STOP_BUMP
Loading