Merge branch 'master' of https://github.com/Citadel-Station-13/Citadel-Station-13 into proc-define-shit
This commit is contained in:
@@ -189,31 +189,31 @@
|
||||
/obj/item/paper/contract/infernal/proc/attempt_signature(mob/living/carbon/human/user, blood = 0)
|
||||
if(!user.IsAdvancedToolUser() || !user.is_literate())
|
||||
to_chat(user, "<span class='notice'>You don't know how to read or write.</span>")
|
||||
return 0
|
||||
return FALSE
|
||||
if(user.mind != target)
|
||||
to_chat(user, "<span class='notice'>Your signature simply slides off the sheet, it seems this contract is not meant for you to sign.</span>")
|
||||
return 0
|
||||
return FALSE
|
||||
if(user.mind.soulOwner == owner)
|
||||
to_chat(user, "<span class='notice'>This devil already owns your soul, you may not sell it to [owner.p_them()] again.</span>")
|
||||
return 0
|
||||
return FALSE
|
||||
if(signed)
|
||||
to_chat(user, "<span class='notice'>This contract has already been signed. It may not be signed again.</span>")
|
||||
return 0
|
||||
return FALSE
|
||||
if(!user.mind.hasSoul)
|
||||
to_chat(user, "<span class='notice'>You do not possess a soul.</span>")
|
||||
return 0
|
||||
return FALSE
|
||||
if(HAS_TRAIT(user, TRAIT_DUMB))
|
||||
to_chat(user, "<span class='notice'>You quickly scrawl 'your name' on the contract.</span>")
|
||||
signIncorrectly()
|
||||
return 0
|
||||
return FALSE
|
||||
if (contractType == CONTRACT_REVIVE)
|
||||
to_chat(user, "<span class='notice'>You are already alive, this contract would do nothing.</span>")
|
||||
return 0
|
||||
return FALSE
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You quickly scrawl your name on the contract</span>")
|
||||
if(fulfillContract(target.current, blood)<=0)
|
||||
to_chat(user, "<span class='notice'>But it seemed to have no effect, perhaps even Hell itself cannot grant this boon?</span>")
|
||||
return 1
|
||||
return TRUE
|
||||
|
||||
|
||||
|
||||
@@ -221,7 +221,7 @@
|
||||
if (target == M.mind && M.stat == DEAD && M.mind.soulOwner == M.mind)
|
||||
if (cooldown)
|
||||
to_chat(user, "<span class='notice'>Give [M] a chance to think through the contract, don't rush [M.p_them()].</span>")
|
||||
return 0
|
||||
return FALSE
|
||||
cooldown = TRUE
|
||||
var/mob/living/carbon/human/H = M
|
||||
var/mob/dead/observer/ghost = H.get_ghost()
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
maptext_x = 10
|
||||
if(100)
|
||||
maptext_x = 8
|
||||
maptext = "[current_number]" //Finally, apply the maptext
|
||||
maptext = MAPTEXT("[current_number]") //Finally, apply the maptext
|
||||
|
||||
/obj/machinery/ticket_machine/attackby(obj/item/I, mob/user, params)
|
||||
..()
|
||||
@@ -182,11 +182,7 @@
|
||||
playsound(src, 'sound/machines/terminal_insert_disc.ogg', 100, FALSE)
|
||||
ticket_number ++
|
||||
to_chat(user, "<span class='notice'>You take a ticket from [src], looks like you're ticket number #[ticket_number]...</span>")
|
||||
var/obj/item/ticket_machine_ticket/theirticket = new /obj/item/ticket_machine_ticket(get_turf(src))
|
||||
theirticket.name = "Ticket #[ticket_number]"
|
||||
theirticket.maptext = "<font color='#000000'>[ticket_number]</font>"
|
||||
theirticket.saved_maptext = "<font color='#000000'>[ticket_number]</font>"
|
||||
theirticket.ticket_number = ticket_number
|
||||
var/obj/item/ticket_machine_ticket/theirticket = new /obj/item/ticket_machine_ticket(get_turf(src), ticket_number)
|
||||
theirticket.source = src
|
||||
theirticket.owner = user
|
||||
user.put_in_hands(theirticket)
|
||||
@@ -211,10 +207,25 @@
|
||||
w_class = WEIGHT_CLASS_TINY
|
||||
resistance_flags = FLAMMABLE
|
||||
max_integrity = 50
|
||||
var/number
|
||||
var/saved_maptext = null
|
||||
var/mob/living/carbon/owner
|
||||
var/obj/machinery/ticket_machine/source
|
||||
var/ticket_number
|
||||
|
||||
/obj/item/ticket_machine_ticket/Initialize(mapload, num)
|
||||
. = ..()
|
||||
number = num
|
||||
if(!isnull(num))
|
||||
name += " #[num]"
|
||||
saved_maptext = MAPTEXT(num)
|
||||
maptext = saved_maptext
|
||||
|
||||
/obj/item/ticket_machine_ticket/examine(mob/user)
|
||||
. = ..()
|
||||
if(!isnull(number))
|
||||
. += span_notice("The ticket reads shimmering text that tells you that you are number [number] in queue.")
|
||||
if(source)
|
||||
. += span_notice("Below that, you can see that you are [number - source.current_number] spot\s away from being served.")
|
||||
|
||||
/obj/item/ticket_machine_ticket/attack_hand(mob/user)
|
||||
. = ..()
|
||||
@@ -233,7 +244,7 @@
|
||||
/obj/item/ticket_machine_ticket/Destroy()
|
||||
if(owner && source)
|
||||
source.ticket_holders -= owner
|
||||
source.tickets[ticket_number] = null
|
||||
source.tickets[number] = null
|
||||
owner = null
|
||||
source = null
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user