Skip to content

Commit

Permalink
remove's pAI suicide verb because they already have the wipe-software…
Browse files Browse the repository at this point in the history
… verb which handles pAI 'suicide' properly (#6365)

## About The Pull Request
remove's pAI suicide verb because they already have the wipe-software
verb which handles pAI 'suicide' properly

## Why It's Good For The Game
fixes a bug by just removing the verb causing the issue
we don't need two verbs for this

## Changelog

<!-- If your PR modifies aspects of the game that can be concretely
observed by players or admins you should add a changelog. If your change
does NOT meet this description, remove this section. Be sure to properly
mark your PRs to prevent unnecessary GBP loss. You can read up on GBP
and it's effects on PRs in the tgstation guides for contributors. Please
note that maintainers freely reserve the right to remove and add tags
should they deem it appropriate. You can attempt to finagle the system
all you want, but it's best to shoot for clear communication right off
the bat. -->

:cl:
fix: remove's pAI suicide verb because they already have the
wipe-software verb which handles pAI 'suicide' properly
/:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->
  • Loading branch information
timothyteakettle committed Apr 3, 2024
1 parent 99be7d4 commit 9c23d4f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions code/game/verbs/suicide.dm
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,3 @@
adjustOxyLoss(max(getMaxHealth() * 2 - getToxLoss() - getFireLoss() - getBruteLoss() - getOxyLoss(), 0))
update_health()

/mob/living/silicon/pai/verb/suicide()
set category = "pAI Commands"
set desc = "Kill yourself and become a ghost (You will receive a confirmation prompt)"
set name = "pAI Suicide"
var/answer = input("REALLY kill yourself? This action can't be undone.", "Suicide", "No") in list ("Yes", "No")
if(answer == "Yes")
var/obj/item/paicard/card = loc
card.removePersonality()
var/turf/T = get_turf_or_move(card.loc)
for (var/mob/M in viewers(T))
M.show_message("<span class='notice'>[src] flashes a message across its screen, \"Wiping core files. Please acquire a new personality to continue using pAI device functions.\"</span>", 3, "<span class='notice'>[src] bleeps electronically.</span>", 2)
death(0)
else
to_chat(src, "Aborting suicide attempt.")

0 comments on commit 9c23d4f

Please sign in to comment.