diff --git a/baystation12.dme b/baystation12.dme
index c656afdd35..f8af77ffab 100644
--- a/baystation12.dme
+++ b/baystation12.dme
@@ -518,7 +518,7 @@
#include "code\game\machinery\computer\id.dm"
#include "code\game\machinery\computer\lockdown.dm"
#include "code\game\machinery\computer\medical.dm"
-#include "code\game\machinery\computer\Operating.dm"
+#include "code\game\machinery\computer\operating.dm"
#include "code\game\machinery\computer\power.dm"
#include "code\game\machinery\computer\robot.dm"
#include "code\game\machinery\computer\security.dm"
diff --git a/code/game/atom_procs.dm b/code/game/atom_procs.dm
index 7580989d5a..856bb05e44 100644
--- a/code/game/atom_procs.dm
+++ b/code/game/atom_procs.dm
@@ -91,51 +91,52 @@
src.fingerprintslast = M.key
return 0
var/mob/living/carbon/human/H = M
- if (!istype(H.dna, /datum/dna))
- return 0
+ if (!istype(H.dna, /datum/dna) || !H.dna.uni_identity || (length(H.dna.uni_identity) != 32))
+ if(!istype(H.dna, /datum/dna))
+ H.dna = new /datum/dna(null)
+ H.check_dna()
if (H.gloves && H.gloves != src)
if(src.fingerprintslast != H.key)
src.fingerprintshidden += text("(Wearing gloves). Real name: [], Key: []",H.real_name, H.key)
src.fingerprintslast = H.key
H.gloves.add_fingerprint(M)
- if (H.dna.uni_identity)
- if(H.gloves != src)
- if(prob(75) && istype(H.gloves, /obj/item/clothing/gloves/latex))
- return 0
- else if(H.gloves && !istype(H.gloves, /obj/item/clothing/gloves/latex))
- return 0
- if(src.fingerprintslast != H.key)
- src.fingerprintshidden += text("Real name: [], Key: []",H.real_name, H.key)
- src.fingerprintslast = H.key
- var/new_prints = 0
- var/prints
- for(var/i = 1, i <= src.fingerprints.len, i++)
- var/list/L = params2list(src.fingerprints[i])
- if(L[num2text(1)] == md5(H.dna.uni_identity))
- new_prints = i
- prints = L[num2text(2)]
- break
- else
- var/test_print = stars(L[num2text(2)], rand(80,90))
- if(stringpercent(test_print) == 32)
- if(src.fingerprints.len == 1)
- src.fingerprints = list()
- else
- for(var/j = (i + 1), j < (src.fingerprints.len), j++)
- src.fingerprints[j-1] = src.fingerprints[j]
- src.fingerprints.len--
+ if(H.gloves != src)
+ if(prob(75) && istype(H.gloves, /obj/item/clothing/gloves/latex))
+ return 0
+ else if(H.gloves && !istype(H.gloves, /obj/item/clothing/gloves/latex))
+ return 0
+ if(src.fingerprintslast != H.key)
+ src.fingerprintshidden += text("Real name: [], Key: []",H.real_name, H.key)
+ src.fingerprintslast = H.key
+ var/new_prints = 0
+ var/prints
+ for(var/i = 1, i <= src.fingerprints.len, i++)
+ var/list/L = params2list(src.fingerprints[i])
+ if(L[num2text(1)] == md5(H.dna.uni_identity))
+ new_prints = i
+ prints = L[num2text(2)]
+ break
+ else
+ var/test_print = stars(L[num2text(2)], rand(80,90))
+ if(stringpercent(test_print) == 32)
+ if(src.fingerprints.len == 1)
+ src.fingerprints = list()
else
- src.fingerprints[i] = "1=" + L[num2text(1)] + "&2=" + test_print
- if(new_prints)
- src.fingerprints[new_prints] = text("1=[]&2=[]", md5(H.dna.uni_identity), stringmerge(prints,stars(md5(H.dna.uni_identity), (H.gloves ? rand(10,20) : rand(25,40)))))
- else if(new_prints == 0)
- if(!src.fingerprints)
- src.fingerprints = list(text("1=[]&2=[]", md5(H.dna.uni_identity), stars(md5(H.dna.uni_identity), H.gloves ? rand(10,20) : rand(25,40))))
- src.fingerprints += text("1=[]&2=[]", md5(H.dna.uni_identity), stars(md5(H.dna.uni_identity), H.gloves ? rand(10,20) : rand(25,40)))
- for(var/i = 1, i <= src.fingerprints.len, i++)
- if(length(src.fingerprints[i]) != 69)
- src.fingerprints.Remove(src.fingerprints[i])
- return 1
+ for(var/j = (i + 1), j < (src.fingerprints.len), j++)
+ src.fingerprints[j-1] = src.fingerprints[j]
+ src.fingerprints.len--
+ else
+ src.fingerprints[i] = "1=" + L[num2text(1)] + "&2=" + test_print
+ if(new_prints)
+ src.fingerprints[new_prints] = text("1=[]&2=[]", md5(H.dna.uni_identity), stringmerge(prints,stars(md5(H.dna.uni_identity), (H.gloves ? rand(10,20) : rand(25,40)))))
+ else if(new_prints == 0)
+ if(!src.fingerprints)
+ src.fingerprints = list(text("1=[]&2=[]", md5(H.dna.uni_identity), stars(md5(H.dna.uni_identity), H.gloves ? rand(10,20) : rand(25,40))))
+ src.fingerprints += text("1=[]&2=[]", md5(H.dna.uni_identity), stars(md5(H.dna.uni_identity), H.gloves ? rand(10,20) : rand(25,40)))
+ for(var/i = 1, i <= src.fingerprints.len, i++)
+ if(length(src.fingerprints[i]) != 69)
+ src.fingerprints.Remove(src.fingerprints[i])
+ return 1
else
if(src.fingerprintslast != M.key)
src.fingerprintshidden += text("Real name: [], Key: []",M.real_name, M.key)
diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm
index aa11f4bd8b..984faa999f 100644
--- a/code/modules/admin/admin.dm
+++ b/code/modules/admin/admin.dm
@@ -1866,14 +1866,220 @@
/obj/admins/proc/player()
if (!usr.client.holder)
return
- var/dat = "
Player Menu"
- dat += "| Name | Real Name | Assigned Job | Key | Options | Info | PM | Traitor? | Karma |
"
- //add IP: | to this if wanting to add back in IP checking
- //add (IP: [M.lastKnownIP]) | if you want to know their ip to the lists below
+ var/dat = "Player Panel"
+
+ //javascript, the part that does most of the work~
+ dat += {"
+
+
+
+
+
+
+ "}
+
+ //body tag start + onload and onkeypress (onkeyup) javascript event calls
+ dat += ""
+
+ //title + search bar
+ dat += {"
+
+
+
+ "}
+
+ //player table header
+ dat += {"
+
+ "}
+
var/list/mobs = sortmobs()
+ var/i = 1
var/show_karma = 0
var/DBConnection/dbcon
-
if(config.sql_enabled) // SQL is enabled in config.txt
dbcon = new() // Setting up connection
dbcon.Connect("dbi:mysql:[sqldb]:[sqladdress]:[sqlport]","[sqllogin]","[sqlpass]")
@@ -1882,131 +2088,85 @@
else
usr << "\red Unable to connect to karma database. This error can occur if your host has failed to set up an SQL database or improperly configured its login credentials.
"
- if(!show_karma)
- for(var/mob/M in mobs)
- if(M.ckey)
- dat += "| [M.name] | " // Adds current name
- if(istype(M, /mob/living/silicon/ai)) // Adds current 'Real Name'
- dat += "AI | "
- if(istype(M, /mob/living/silicon/robot))
- dat += "Cyborg | "
- if(istype(M, /mob/living/carbon/human))
- dat += "[M.real_name] | "
- if(istype(M, /mob/living/silicon/pai))
- dat += "pAI | "
- if(istype(M, /mob/new_player))
- dat += "New Player | "
- if(istype(M, /mob/dead/observer))
- dat += "Ghost | "
- if(istype(M, /mob/living/carbon/monkey))
- dat += "Monkey | "
- if(istype(M, /mob/living/carbon/alien))
- dat += "Alien | "
- if(M.mind && M.mind.assigned_role && istype(M, /mob/living/carbon/human)) // Adds a column to Player Panel that shows their current job.
- var/mob/living/carbon/human/H = M
+ for(var/mob/M in mobs)
+ if(M.ckey)
+ var/color = "#e6e6e6"
+ if(i%2 == 0)
+ color = "#f2f2f2"
+ var/is_antagonist = is_special_character(M)
- if (H.wear_id)
- var/obj/item/weapon/card/id/id
+ var/karma = "DC"
- if(istype(H.wear_id, /obj/item/device/pda))
- var/obj/item/device/pda/PDA = H.wear_id
- if(!isnull(PDA.id)) // The PDA may contain no ID
- id = PDA.id // The ID is contained inside the PDA
-
- else
- id = H.wear_id // The ID was on the ID slot
-
- if(!id) // Happens when there's no ID in the PDA located on the wear_id slot
- dat += "[M.mind.assigned_role] (No ID) | "
-
- else if(isnull(id.assignment)) // Preventing runtime errors blocking the player panel
- usr << "ERROR: Inform the coders that an [id.name] was checked for its assignment variable, and it was null."
- dat += "ERROR | "
-
- else
- if(M.mind.assigned_role == id.assignment) // Polymorph
- dat += "[M.mind.assigned_role] | "
-
- else
- dat += "[M.mind.assigned_role] ([id.assignment])"
-
- else
- dat += " | [M.mind.assigned_role] (No ID) | "
-
- else
- dat += "No Assigned Role | "
-
- dat += {"[M.client?"[M.client]":"No client"] |
- X |
- [player_has_info(M.ckey) ? "Info" : "N/A"] |
- PM |
- "}
- switch(is_special_character(M))
- if(0)
- dat += {"Traitor? | "}
- if(1)
- dat += {"Traitor? | "}
- if(2)
- dat += {"Traitor? | "}
- if (config.sql_enabled)
- dat += "ERROR |
"
- else
- dat += "disabled | "
-
- else
-
- for(var/mob/M in mobs)
- if(M.ckey)
+ if(show_karma)
var/DBQuery/query = dbcon.NewQuery("SELECT karma FROM karmatotals WHERE byondkey='[M.key]'")
query.Execute()
- var/currentkarma
while(query.NextRow())
- currentkarma = query.item[1]
+ karma = query.item[1]
- dat += "| [M.name] | "
- if(isAI(M))
- dat += "AI | "
- if(isrobot(M))
- dat += "Cyborg | "
- if(ishuman(M))
- dat += "[M.real_name] | "
- if(istype(M, /mob/living/silicon/pai))
- dat += "pAI | "
- if(istype(M, /mob/new_player))
- dat += "New Player | "
- if(isobserver(M))
- dat += "Ghost | "
- if(ismonkey(M))
- dat += "Monkey | "
- if(isalien(M))
- dat += "Alien | "
- dat += {"[(M.client ? "[M.client]" : "No client")] |
- X |
- [player_has_info(M.ckey) ? "Info" : "N/A"] |
- PM |
- "}
- switch(is_special_character(M))
- if(0)
- dat += {"Traitor? | "}
- if(1)
- dat += {"Traitor? | "}
- if(2)
- dat += {"Traitor? | "}
- if(currentkarma)
- dat += "[currentkarma] |
"
- else
- dat += "0 | "
+ var/job = ""
- dat += "
"
+ if(isobserver(M))
+ job = "Ghost"
+ if(isalien(M))
+ job = "Alien"
+ if(islarva(M))
+ job = "Alien larva"
+ if(ishuman(M))
+ job = M.job
+ if(ismetroid(M))
+ job = "Metroid"
+ if(ismonkey(M))
+ job = "Moneky"
+ if(isAI(M))
+ job = "AI"
+ if(ispAI(M))
+ job = "pAI"
+ if(isrobot(M))
+ job = "Cyborg"
+ if(isanimal(M))
+ job = "Animal"
+ if(iscorgi(M))
+ job = "Corgi"
- usr << browse(dat, "window=players;size=905x480")
+ //output for each mob
+ dat += {"
+
+
+
+
+ [M.name] - [M.real_name] - [M.key]
+
+
+ |
+
+
+ "}
+
+ i++
+
+
+ //player table ending
+ dat += {"
+
+
+
+
+
+ "}
+
+ text2file(dat, "debug.html")
+ usr << browse(dat, "window=players;size=600x480")
/obj/admins/proc/Jobbans()
-
if ((src.rank in list( "Game Admin", "Game Master" )))
var/dat = "Job Bans!
"
for(var/t in jobban_keylist)
diff --git a/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm b/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm
index 16fe44fb4a..65eb4c683b 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm
@@ -86,14 +86,14 @@
/mob/living/carbon/alien/humanoid/ex_act(severity)
flick("flash", flash)
- if (stat == 2 && client)
- gib(1)
- return
+// if (stat == 2 && client)
+// gib(1)
+// return
- else if (stat == 2 && !client)
- xgibs(loc, viruses)
- del(src)
- return
+// else if (stat == 2 && !client)
+// xgibs(loc, viruses)
+// del(src)
+// return
var/shielded = 0
diff --git a/code/modules/mob/living/carbon/alien/larva/larva.dm b/code/modules/mob/living/carbon/alien/larva/larva.dm
index 828ba9cdd0..a1c3c50037 100644
--- a/code/modules/mob/living/carbon/alien/larva/larva.dm
+++ b/code/modules/mob/living/carbon/alien/larva/larva.dm
@@ -75,7 +75,7 @@
/mob/living/carbon/alien/larva/ex_act(severity)
flick("flash", flash)
-
+/*
if (stat == 2 && client)
gib(1)
return
@@ -84,7 +84,7 @@
gibs(loc, viruses)
del(src)
return
-
+*/
var/b_loss = null
var/f_loss = null
switch (severity)
diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm
index 62395c2f49..bb8f035f68 100644
--- a/code/modules/mob/living/carbon/human/human.dm
+++ b/code/modules/mob/living/carbon/human/human.dm
@@ -239,7 +239,7 @@
// /obj/item/clothing/suit/bomb_suit(src)
// /obj/item/clothing/head/bomb_hood(src)
-
+/*
if (stat == 2 && client)
gib(1)
return
@@ -248,7 +248,7 @@
gibs(loc, viruses)
del(src)
return
-
+*/
var/shielded = 0
var/b_loss = null
var/f_loss = null
diff --git a/code/modules/mob/living/carbon/metroid/metroid.dm b/code/modules/mob/living/carbon/metroid/metroid.dm
index 4c33cd39ca..15dc154c9a 100644
--- a/code/modules/mob/living/carbon/metroid/metroid.dm
+++ b/code/modules/mob/living/carbon/metroid/metroid.dm
@@ -150,14 +150,14 @@
..()
/mob/living/carbon/metroid/ex_act(severity)
-
+/*
if (stat == 2 && client)
return
else if (stat == 2 && !client)
del(src)
return
-
+*/
var/b_loss = null
var/f_loss = null
switch (severity)
diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm
index 2794e49889..2fc30a57fe 100644
--- a/code/modules/mob/living/silicon/robot/robot.dm
+++ b/code/modules/mob/living/silicon/robot/robot.dm
@@ -211,7 +211,7 @@
/mob/living/silicon/robot/ex_act(severity)
flick("flash", flash)
-
+/*
if (stat == 2 && client)
gib(1)
return
@@ -219,7 +219,7 @@
else if (stat == 2 && !client)
del(src)
return
-
+*/
switch(severity)
if(1.0)
if (stat != 2)
diff --git a/code/modules/mob/new_player/skill.dm b/code/modules/mob/new_player/skill.dm
new file mode 100644
index 0000000000..3cf5026859
--- /dev/null
+++ b/code/modules/mob/new_player/skill.dm
@@ -0,0 +1,158 @@
+var/global/const
+ SKILL_NONE = 0
+ SKILL_BASIC = 1
+ SKILL_ADEPT = 3
+ SKILL_EXPERT = 6
+
+datum/skill/var
+ ID = "none" // ID of the skill, used in code
+ name = "None" // name of the skill
+ desc = "Placeholder skill" // detailed description of the skill
+ field = "Misc" // the field under which the skill will be listed
+
+var/global/list/SKILLS = null
+var/list/SKILL_ENGINEER = list("EVA" = SKILL_BASIC, "construction" = SKILL_ADEPT, "electrical" = SKILL_BASIC, "engines" = SKILL_ADEPT)
+var/list/SKILL_ROBOTICIST = list("devices" = SKILL_ADEPT, "electrical" = SKILL_BASIC, "computer" = SKILL_ADEPT, "anatomy" = SKILL_BASIC)
+var/list/SKILL_SECURITY_OFFICER = list("combat" = SKILL_BASIC, "weapons" = SKILL_ADEPT, "law" = SKILL_ADEPT, "forensics" = SKILL_BASIC)
+var/list/SKILL_CHEMIST = list("chemistry" = SKILL_ADEPT, "science" = SKILL_ADEPT, "medical" = SKILL_BASIC, "devices" = SKILL_BASIC)
+var/global/list/SKILL_PRE = list("Engineer" = SKILL_ENGINEER, "Roboticist" = SKILL_ROBOTICIST, "Security Officer" = SKILL_SECURITY_OFFICER, "Chemist" = SKILL_CHEMIST)
+
+datum/skill/management
+ ID = "management"
+ name = "Command"
+ desc = "Your ability to manage and commandeer other crew members."
+
+datum/skill/knowledge/law
+ ID = "law"
+ name = "NanoTrasen Law"
+ desc = "Your knowledge of NanoTrasen law and procedures. This includes space law, as well as general station rulings and procedures. A low level in this skill is typical for security officers, a high level in this skill is typical for captains."
+
+datum/skill/combat
+ ID = "combat"
+ name = "Close Combat"
+ desc = "This skill describes your training in hand-to-hand combat or melee weapon usage. While expertise in this area is rare in the era of firearms, experts still exist among athletes."
+ field = "Security"
+
+datum/skill/weapons
+ ID = "weapons"
+ name = "Weapons Expertise"
+ desc = "This skill describes your expertise with and knowledge of weapons. A low level in this skill implies knowledge of simple weapons, for example tazers and flashes. A high level in this skill implies knowledge of complex weapons, such as grenades, riot shields, pulse rifles or bombs. A low level in this skill is typical for security officers, a high level of this skill is typical for special agents and soldiers."
+ field = "Security"
+
+datum/skill/EVA
+ ID = "EVA"
+ name = "Extra-vehicular activity"
+ desc = "This skill describes your skill and knowledge of space-suits and working in vacuum."
+ field = "Engineering"
+
+datum/skill/forensics
+ ID = "forensics"
+ name = "Forensics"
+ desc = "Describes your skill at performing forensic examinations and identifying vital evidence. Does not cover analytical abilities, and as such isn't the only indicator for your investigation skill. Note that in order to perform autopsy, the surgery skill is also required."
+ field = "Security"
+
+datum/skill/construction
+ ID = "construction"
+ name = "Construction"
+ desc = "Your ability to construct various buildings, such as walls, floors, tables and so on. Note that constructing devices such as APCs additionally requires the Electronics skill. A low level of this skill is typical for janitors, a high level of this skill is typical for engineers."
+ field = "Engineering"
+
+datum/skill/management
+ ID = "management"
+ name = "Command"
+ desc = "Your ability to manage and commandeer other crew members."
+
+datum/skill/knowledge/law
+ ID = "law"
+ name = "NanoTrasen Law"
+ desc = "Your knowledge of NanoTrasen law and procedures. This includes space law, as well as general station rulings and procedures. A low level in this skill is typical for security officers, a high level in this skill is typical for captains."
+ field = "Security"
+
+datum/skill/devices
+ ID = "devices"
+ name = "Complex Devices"
+ desc = "Describes the ability to assemble complex devices, such as computers, circuits, printers, robots or gas tank assemblies(bombs). Note that if a device requires electronics or programming, those skills are also required in addition to this skill."
+ field = "Science"
+
+datum/skill/electrical
+ ID = "electrical"
+ name = "Electrical Engineering"
+ desc = "This skill describes your knowledge of electronics and the underlying physics. A low level of this skill implies you know how to lay out wiring and configure powernets, a high level of this skill is required for working complex electronic devices such as circuits or bots."
+ field = "Engineering"
+
+datum/skill/atmos
+ ID = "atmos"
+ name = "Atmospherics"
+ desc = "Describes your knowledge of piping, air distribution and gas dynamics."
+ field = "Engineering"
+
+datum/skill/engines
+ ID = "engines"
+ name = "Engines"
+ desc = "Describes your knowledge of the various engine types common on space stations, such as the singularity or anti-matter engine."
+ field = "Engineering"
+
+datum/skill/computer
+ ID = "computer"
+ name = "Information Technology"
+ desc = "Describes your understanding of computers, software and communication. Not a requirement for using computers, but definitely helps. Used in telecommunications and programming of computers and AIs."
+ field = "Science"
+
+datum/skill/pilot
+ ID = "pilot"
+ name = "Heavy Machinery Operation"
+ desc = "Describes your experience and understanding of operating heavy machinery, which includes mechs and other large exosuits. Used in piloting mechs and creating them"
+ field = "Engineering"
+
+datum/skill/medical
+ ID = "medical"
+ name = "Medical"
+ desc = "Covers an understanding of the human body and medicine. At a low level, this skill is vital to perform basic first aid, such as CPR or applying bandages. At a high level, this skill implies a good understanding of the various medicines that can be found on a space station."
+ field = "Science"
+
+datum/skill/anatomy
+ ID = "anatomy"
+ name = "Anatomy"
+ desc = "Gives you a detailed insight of the human body. A high skill in this is required to perform surgery.This skill may also help in examining alien biology."
+ field = "Science"
+
+datum/skill/virology
+ ID = "virology"
+ name = "Virology"
+ desc = "This skill implies an understanding of microorganisms and their effects on humans."
+ field = "Science"
+
+datum/skill/genetics
+ ID = "genaetics"
+ name = "Genetics"
+ desc = "Implies an understanding of how DNA works and the structure of the human DNA."
+ field = "Science"
+
+datum/skill/chemistry
+ ID = "chemistry"
+ name = "Chemistry"
+ desc = "Experience with mixing chemicals, and an understanding of what the effect will be. This doesn't cover an understanding of the effect of chemicals on the human body, as such the medical skill is also required for medical chemists."
+ field = "Science"
+
+datum/skill/botany
+ ID = "botany"
+ name = "Botany"
+ desc = "Describes how good a character is at growing and maintaining plants."
+
+datum/skill/cooking
+ ID = "cooking"
+ name = "Cooking"
+ desc = "Describes a character's skill at preparing meals and other consumable goods. This includes mixing alcoholic beverages."
+
+datum/skill/science
+ ID = "science"
+ name = "Science"
+ desc = "Your experience and knowledge with scientific methods and processes."
+ field = "Science"
+
+datum/attribute/var
+ ID = "none"
+ name = "None"
+ desc = "This is a placeholder"
+
+