mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 00:58:26 +01:00
* add var icon, delete duplicated icons, add way to choose icon path. * more modularity?
22 lines
881 B
Plaintext
22 lines
881 B
Plaintext
/datum/buildmode_mode/offercontrol
|
|
key = "offercontrol"
|
|
button_icon = 'modular_skyrat/master_files/icons/misc/buildmode.dmi' // if you are making a modular build mode, use this icon path.
|
|
|
|
/datum/buildmode_mode/offercontrol/show_help(client/target_client)
|
|
to_chat(target_client, span_notice("***********************************************************\n\
|
|
Left Mouse Button on mob/living = Offer control to ghosts.\n\
|
|
***********************************************************"))
|
|
|
|
/datum/buildmode_mode/offercontrol/handle_click(client/target_client, params, object)
|
|
if(!ismob(object))
|
|
return
|
|
|
|
var/mob/living/mob_to_offer = object
|
|
|
|
if(mob_to_offer.key)
|
|
var/response = tgui_alert(target_client, "This mob already has a ckey attached, continue?", "Mob already posessed!", list("Continue", "Cancel"))
|
|
if(response != "Continue")
|
|
return
|
|
|
|
offer_control(mob_to_offer)
|