mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-11 07:58:57 +01:00
4538e2a7cc
* cbt * AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA * fsadffsda sad * sadfasd * jhn * dsfa * saf * safsad * sda
25 lines
778 B
Plaintext
25 lines
778 B
Plaintext
//Ships are on a time limit as far as being around goes.
|
|
//They are ALSO the only ones that can appear after round start
|
|
/datum/trader/ship
|
|
var/duration_of_stay = 0
|
|
var/typical_duration = 5 //5 minutes (since trader processes only tick once a minute)
|
|
|
|
/datum/trader/ship/New()
|
|
..()
|
|
duration_of_stay = rand(typical_duration,typical_duration * 2)
|
|
|
|
/datum/trader/ship/tick()
|
|
..()
|
|
if(prob(-disposition) || refuse_comms)
|
|
duration_of_stay--
|
|
return --duration_of_stay > 0
|
|
|
|
/datum/trader/ship/bribe_to_stay_longer(var/amt)
|
|
if(prob(-disposition))
|
|
return get_response("bribe_refusal", "How about.... no?")
|
|
|
|
var/length = round(amt/100)
|
|
duration_of_stay += length
|
|
. = get_response("bribe_accept", "Sure, I'll stay for TIME more minutes.")
|
|
. = replacetext(., "TIME", length)
|