TG: - Made the gold, silver, regular id cards a job datum variable.

Revision: r3471
Author: 	 baloh.matev
This commit is contained in:
Ren Erthilo
2012-05-03 03:37:23 +01:00
parent 3c96a4357d
commit 77845f557a
7 changed files with 21 additions and 5 deletions
+2
View File
@@ -7,6 +7,7 @@
spawn_positions = 1
supervisors = "Nanotrasen officials and Space law"
selection_color = "#ccccff"
idtype = /obj/item/weapon/card/id/gold
equip(var/mob/living/carbon/human/H)
@@ -43,6 +44,7 @@
spawn_positions = 1
supervisors = "the captain"
selection_color = "#ddddff"
idtype = /obj/item/weapon/card/id/silver
equip(var/mob/living/carbon/human/H)
+1
View File
@@ -7,6 +7,7 @@
spawn_positions = 1
supervisors = "the captain"
selection_color = "#ffeeaa"
idtype = /obj/item/weapon/card/id/silver
equip(var/mob/living/carbon/human/H)
+3
View File
@@ -25,6 +25,9 @@
//Sellection screen color
var/selection_color = "#ffffff"
//the type of the ID the player will have
var/idtype = /obj/item/weapon/card/id
//List of alternate titles, if any
var/list/alt_titles
+1
View File
@@ -7,6 +7,7 @@
spawn_positions = 1
supervisors = "the captain"
selection_color = "#ffddf0"
idtype = /obj/item/weapon/card/id/silver
equip(var/mob/living/carbon/human/H)
+1
View File
@@ -7,6 +7,7 @@
spawn_positions = 1
supervisors = "the captain"
selection_color = "#ffddff"
idtype = /obj/item/weapon/card/id/silver
equip(var/mob/living/carbon/human/H)
+1
View File
@@ -7,6 +7,7 @@
spawn_positions = 1
supervisors = "the captain"
selection_color = "#ffdddd"
idtype = /obj/item/weapon/card/id/silver
equip(var/mob/living/carbon/human/H)
+12 -5
View File
@@ -285,13 +285,20 @@ var/global/datum/controller/occupations/job_master
if(!H) return 0
if(!title) title = rank
var/obj/item/weapon/card/id/C = null
switch(rank)
if("Cyborg")
var/datum/job/job = null
for(var/datum/job/J in occupations)
if(J.title == rank)
job = J
break
if(job)
if(job.title == "Cyborg")
return
if("Captain")
C = new /obj/item/weapon/card/id/gold(H)
else
C = new /obj/item/weapon/card/id(H)
C = new job.idtype(H)
else
C = new /obj/item/weapon/card/id(H)
if(C)
C.registered_name = H.real_name
C.assignment = title