Skip to content

Commit

Permalink
contractor
Browse files Browse the repository at this point in the history
  • Loading branch information
ROdenFL committed Dec 11, 2023
1 parent 3b1fc24 commit 014261f
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions code/modules/antagonists/traitor/contractor/datums/contractor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,30 @@

/datum/antagonist/contractor/greet()
// Greet them with the unique message
var/list/messages = list()
var/greet_text = "Contractors forfeit [tc_cost] telecrystals for the privilege of taking on kidnapping contracts for credit and TC payouts that can add up to more than the normal starting amount of TC.<br>"\
+ "If you are interested, simply access your hidden uplink and select the \"Contracting Opportunity\" tab for more information.<br>"
to_chat(owner.current, "<b><font size=4 color=red>You have been offered a chance to become a Contractor.</font></b><br>")
to_chat(owner.current, "<font color=red>[greet_text]</font>")
to_chat(owner.current, "<b><i><font color=red>This offer will expire in 10 minutes starting now (expiry time: <u>[station_time_timestamp(time = offer_deadline)]</u>).</font></i></b>")

messages.Add("<b><font size=4 color=red>You have been offered a chance to become a Contractor.</font></b><br>")
messages.Add("<font color=red>[greet_text]</font>")
messages.Add("<b><i><font color=red>This offer will expire in 10 minutes starting now (expiry time: <u>[station_time_timestamp(time = offer_deadline)]</u>).</font></i></b>")
return messages

/datum/antagonist/contractor/on_gain()
if(!owner?.current)
return FALSE

owner.special_role = special_role
add_owner_to_gamemode()
var/list/messages = list()
messages.Add(greet())
apply_innate_effects()
messages.Add(finalize_antag())
messages.Add("<span class='motd'>С полной информацией вы можете ознакомиться на вики: <a href=\"https://wiki.ss220.space/index.php/Contractor\">Контрактор</span>")
to_chat(owner.current, chat_box_red(messages.Join("<br>")))
if(is_banned(owner.current) && replace_banned)
INVOKE_ASYNC(src, PROC_REF(replace_banned_player))
owner.current.create_log(MISC_LOG, "[owner.current] was made into \an [special_role]")
return TRUE

/**
* Accepts the offer to be a contractor if possible.
Expand Down

0 comments on commit 014261f

Please sign in to comment.