Skip to content

Commit

Permalink
Merge branch 'master' into ai-tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
xDanilcusx committed Oct 30, 2023
2 parents 2d7d7d4 + 6d8d5e6 commit 8b2c165
Show file tree
Hide file tree
Showing 2 changed files with 8 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
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@

addtimer(CALLBACK(src, PROC_REF(check_annoyance)), AI_CHECK_ANNOYANCE_COOLDOWN, TIMER_UNIQUE|TIMER_LOOP|TIMER_DELETE_ME)

start_lurking()

#undef AI_CHECK_ANNOYANCE_COOLDOWN

/datum/xeno_ai_movement/linger/lurking/ai_move_idle(delta_time)
Expand Down

0 comments on commit 8b2c165

Please sign in to comment.