Skip to content

Commit

Permalink
[MIRROR] Removes non-working "Make AI" VV [MDB IGNORE] (#25207)
Browse files Browse the repository at this point in the history
* Removes non-working "Make AI" VV  (#79889)

## About The Pull Request
Removes the "Make AI" from the VV dropdown.
## Why It's Good For The Game
This button doesn't work, and this function already exists in the player
panel.
It doesn't make sense to exist in multiple places, with it not working
in 1 particular place.
## Changelog
:cl:
admin: Remove "Make AI" from VV dropdown
/:cl:

* Removes non-working "Make AI" VV

---------

Co-authored-by: Xander3359 <[email protected]>
  • Loading branch information
2 people authored and FFMirrorBot committed Nov 23, 2023
1 parent 6edd548 commit 185de39
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion code/__DEFINES/vv.dm
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@
#define VV_HK_GIVE_GUARDIAN_SPIRIT "give_guardian_spirit"

// /mob/living/carbon
#define VV_HK_MAKE_AI "aiify"
#define VV_HK_MODIFY_BODYPART "mod_bodypart"
#define VV_HK_MODIFY_ORGANS "organs_modify"
#define VV_HK_MARTIAL_ART "give_martial_art"
Expand Down
7 changes: 0 additions & 7 deletions code/modules/mob/living/carbon/carbon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,6 @@
/mob/living/carbon/vv_get_dropdown()
. = ..()
VV_DROPDOWN_OPTION("", "---------")
VV_DROPDOWN_OPTION(VV_HK_MAKE_AI, "Make AI")
VV_DROPDOWN_OPTION(VV_HK_MODIFY_BODYPART, "Modify bodypart")
VV_DROPDOWN_OPTION(VV_HK_MODIFY_ORGANS, "Modify organs")
VV_DROPDOWN_OPTION(VV_HK_MARTIAL_ART, "Give Martial Arts")
Expand Down Expand Up @@ -1121,12 +1120,6 @@
to_chat(usr, "Failed to replace bodypart! They might be incompatible.")
admin_ticket_log("[key_name_admin(usr)] has attempted to modify the bodyparts of [src]")

if(href_list[VV_HK_MAKE_AI])
if(!check_rights(R_SPAWN))
return
if(tgui_alert(usr,"Confirm mob type change?",,list("Transform","Cancel")) != "Transform")
return
usr.client.holder.Topic("vv_override", list("makeai"=href_list[VV_HK_TARGET]))
if(href_list[VV_HK_MODIFY_ORGANS])
if(!check_rights(NONE))
return
Expand Down

0 comments on commit 185de39

Please sign in to comment.