Skip to content

Commit

Permalink
Paxazide stops harm intent
Browse files Browse the repository at this point in the history
  • Loading branch information
Doxxmedearly committed Jul 30, 2023
1 parent 251c64c commit 3a81c2b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions code/modules/mob/living/carbon/human/human_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
#undef HUMAN_EATING_NO_MOUTH
#undef HUMAN_EATING_BLOCKED_MOUTH

/mob/living/carbon/human/set_intent(var/set_intent)
if(is_pacified() && set_intent == I_HURT && !is_berserk())
to_chat(src, SPAN_WARNING("You don't want to harm other beings!"))
return
..()

/mob/living/carbon/human/proc/update_equipment_vision()
flash_protection = 0
equipment_tint_total = 0
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/life.dm
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
//Ears
handle_hearing()

if((is_pacified()) && a_intent == I_HURT)
if((is_pacified()) && a_intent == I_HURT && !is_berserk())
to_chat(src, "<span class='notice'>You don't feel like harming anybody.</span>")
a_intent_change(I_HELP)

Expand Down
4 changes: 4 additions & 0 deletions html/changelogs/doxxmedearly-pacify_fixes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
author: Doxxmedearly
delete-after: True
changes:
- bugfix: "Being pacified, such as via Paxazide, now properly prevents switching to harm intent unless the user is also berserk."

0 comments on commit 3a81c2b

Please sign in to comment.