Skip to content

Commit

Permalink
time to fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Oct 26, 2023
1 parent 82898f2 commit 80388c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 23 deletions.
7 changes: 5 additions & 2 deletions code/datums/components/phone.dm
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ GLOBAL_LIST_EMPTY_TYPED(phones, /datum/component/phone)
/// Virtual phone used for situations where you want to be able to use a phone without a handset
/datum/component/phone/virtual
/// If it is a virtual phone we need a virtual user
var/mob/virtual_user
var/client/virtual_user

/datum/component/phone/virtual/Destroy()
virtual_user = null
Expand Down Expand Up @@ -554,7 +554,10 @@ GLOBAL_LIST_EMPTY_TYPED(phones, /datum/component/phone)
if(virtual_user == speaker)
name_override = phone_id

virtual_user.hear_radio(message, "says", message_language, part_a = "<span class='purple'><span class='name'>", part_b = "</span><span class='message'> ", vname = name_override, speaker = speaker, command = 3, no_paygrade = TRUE)
if(!virtual_user.mob)
return

virtual_user.mob.hear_radio(message, "says", message_language, part_a = "<span class='purple'><span class='name'>", part_b = "</span><span class='message'> ", vname = name_override, speaker = speaker, command = 3, no_paygrade = TRUE)

// TGUI section

Expand Down
26 changes: 5 additions & 21 deletions code/modules/admin/game_master/game_master.dm
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ GLOBAL_LIST_EMPTY(game_master_objectives)

/// Communication stuff

//var/datum/component/phone/game_master/game_master_phone
var/atom/game_master_phone

/// End Communication stuff

Expand All @@ -85,20 +85,20 @@ GLOBAL_LIST_EMPTY(game_master_objectives)
/datum/game_master/New(client/using_client)
. = ..()

if(using_client.mob)
tgui_interact(using_client.mob)
tgui_interact(using_client.mob)

current_submenus = list()

//game_master_phone = new()
game_master_phone = new()
game_master_phone.AddComponent(/datum/component/phone/virtual, "Game Master", "white", "Company Command", null, PHONE_DO_NOT_DISTURB_FORCED, list(), list(FACTION_MARINE, FACTION_COLONIST, FACTION_WY), null, using_client)

using_client.click_intercept = src

/datum/game_master/Destroy(force, ...)
. = ..()
submenu_types = null
current_submenus = null
//QDEL_NULL(game_master_phone)
QDEL_NULL(game_master_phone)

/datum/game_master/ui_data(mob/user)
. = ..()
Expand Down Expand Up @@ -170,22 +170,6 @@ GLOBAL_LIST_EMPTY(game_master_objectives)
current_click_intercept_action = OBJECTIVE_CLICK_INTERCEPT_ACTION
return

//Communication Section
//if("use_game_master_phone")
//if(!game_master_phone)
// game_master_phone = new()

//var/new_phone_id = tgui_input_text(ui.user, "New phone id?", "Phone ID", game_master_phone.phone_id)
//if(!new_phone_id)
// return

//game_master_phone.phone_id = new_phone_id

//game_master_phone.tgui_interact(ui.user)
//return

//if("set_communication_clarity")

/datum/game_master/ui_close(mob/user)
. = ..()

Expand Down

0 comments on commit 80388c9

Please sign in to comment.