Skip to content

Commit

Permalink
final addition adds hand count VV edit
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasint committed Aug 21, 2023
1 parent 22f5ef7 commit 28a7368
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions monkestation/code/modules/possession/basic_additions.dm
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,12 @@
update_held_items()

#define VV_HK_OFFSET_EDITOR "offset_editor"
#define VV_HK_ADJUST_HANDS "hand_count"
/mob/living/basic/vv_get_dropdown()
. = ..()
VV_DROPDOWN_OPTION("", "-------------") //monkestation edit
VV_DROPDOWN_OPTION(VV_HK_OFFSET_EDITOR, "Edit Offsets") //monkestation edit
VV_DROPDOWN_OPTION(VV_HK_ADJUST_HANDS, "Adjust Hand Count") //monkestation edit

/mob/living/basic/vv_do_topic(list/href_list)
. = ..()
Expand All @@ -263,4 +265,13 @@
if(!usr.client.offset_editor)
usr.client.offset_editor = new
usr.client.offset_editor.open_ui(usr, src)

if(href_list[VV_HK_ADJUST_HANDS] && check_rights(R_FUN))
var/number = tgui_input_number(usr, "How many hands should this mob have?", "Adjust Hand Count")
if(!number)
adjust_hand_count(0)
return
adjust_hand_count(number)

#undef VV_HK_OFFSET_EDITOR
#undef VV_HK_ADJUST_HANDS

0 comments on commit 28a7368

Please sign in to comment.