Skip to content

Commit

Permalink
vent subtypes!
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Oct 30, 2023
1 parent 1998b04 commit 7168fd6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions code/modules/admin/game_master/game_master.dm
Original file line number Diff line number Diff line change
Expand Up @@ -315,15 +315,18 @@ GLOBAL_VAR_INIT(radio_communication_clarity, 100)
return TRUE

else
if(LAZYACCESS(modifiers, MIDDLE_CLICK) && (object.type in submenu_types))
if(LAZYACCESS(modifiers, MIDDLE_CLICK))
for(var/datum/game_master_submenu/submenu in current_submenus)
if(submenu.referenced_atom == object)
submenu.tgui_interact(user)
return TRUE

var/new_menu_type = submenu_types[object.type]
for(var/submenu_type in submenu_types)
if(istype(object, submenu_type))
var/new_submenu_type = submenu_types[submenu_type]
current_submenus += new new_submenu_type(user, object)
return TRUE

current_submenus += new new_menu_type(user, object)
return TRUE

/datum/game_master/proc/remove_objective(datum/destroying_datum)
Expand Down

0 comments on commit 7168fd6

Please sign in to comment.