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

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3471 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz@gmail.com
2012-04-16 17:31:01 +00:00
parent d7aa871bf6
commit f1c3c494a2
7 changed files with 21 additions and 7 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)
@@ -42,6 +43,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,5 +25,8 @@
//Sellection screen color
var/selection_color = "#ffffff"
//the type of the ID the player will have
var/idtype = /obj/item/weapon/card/id
/datum/job/proc/equip(var/mob/living/carbon/human/H)
return 1
+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 -7
View File
@@ -251,15 +251,20 @@ var/global/datum/controller/occupations/job_master
proc/spawnId(var/mob/living/carbon/human/H, rank)
if(!H) return 0
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)
if("Head of Personnel" , "Head of Security" , "Chief Engineer" , "Research Director" , "Chief Medical Officer") // You get an ugly ID
C = new /obj/item/weapon/card/id/silver(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 = H.real_name
C.assignment = rank