mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
Preparations for minds - Part3.
Replaced mob/var/original_name with datum/mind/var/name. Halved the speak-chances of every simple-animal because that constant squeaking was insufferable. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4346 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
datum/mind
|
datum/mind
|
||||||
var/key
|
var/key
|
||||||
var/name //TODO: this will replace mob.original_name
|
var/name //replaces mob/var/original_name
|
||||||
var/mob/living/current
|
var/mob/living/current
|
||||||
var/mob/living/original
|
var/mob/living/original
|
||||||
var/active = 0
|
var/active = 0
|
||||||
@@ -91,7 +91,7 @@ datum/mind
|
|||||||
alert("Not before round-start!", "Alert")
|
alert("Not before round-start!", "Alert")
|
||||||
return
|
return
|
||||||
|
|
||||||
var/out = "<B>[current.real_name]</B><br>"
|
var/out = "<B>[name]</B>[(curent&&(current.real_name!=name))?" (as [current.real_name])":""]<br>"
|
||||||
out += "Assigned role: [assigned_role]. <a href='?src=\ref[src];role_edit=1'>Edit</a><br>"
|
out += "Assigned role: [assigned_role]. <a href='?src=\ref[src];role_edit=1'>Edit</a><br>"
|
||||||
out += "Factions and special roles:<br>"
|
out += "Factions and special roles:<br>"
|
||||||
|
|
||||||
@@ -1100,8 +1100,8 @@ datum/mind
|
|||||||
if(ticker)
|
if(ticker)
|
||||||
ticker.minds += mind
|
ticker.minds += mind
|
||||||
else
|
else
|
||||||
world.log << "## No ticker ready yet! Please inform Carn"
|
world.log << "## DEBUG: mind_initialize(): No ticker ready yet! Please inform Carn"
|
||||||
mind.name = real_name
|
if(!mind.name) mind.name = real_name
|
||||||
mind.current = src
|
mind.current = src
|
||||||
|
|
||||||
//HUMAN
|
//HUMAN
|
||||||
|
|||||||
@@ -1057,7 +1057,6 @@
|
|||||||
brainmob = new(src)
|
brainmob = new(src)
|
||||||
brainmob.name = H.real_name
|
brainmob.name = H.real_name
|
||||||
brainmob.real_name = H.real_name
|
brainmob.real_name = H.real_name
|
||||||
brainmob.original_name = H.original_name
|
|
||||||
brainmob.dna = H.dna
|
brainmob.dna = H.dna
|
||||||
brainmob.timeofhostdeath = H.timeofdeath
|
brainmob.timeofhostdeath = H.timeofdeath
|
||||||
if(H.mind)
|
if(H.mind)
|
||||||
|
|||||||
@@ -278,7 +278,7 @@ Turf and target are seperate in case you want to teleport some distance from a t
|
|||||||
return
|
return
|
||||||
M.real_name = newname
|
M.real_name = newname
|
||||||
M.name = newname
|
M.name = newname
|
||||||
M.original_name = newname
|
M.mind.name = newname
|
||||||
|
|
||||||
//Handles givving the Clown his/her name
|
//Handles givving the Clown his/her name
|
||||||
/proc/clname(var/mob/M as mob) //--All praise goes to NEO|Phyte, all blame goes to DH, and it was Cindi-Kate's idea
|
/proc/clname(var/mob/M as mob) //--All praise goes to NEO|Phyte, all blame goes to DH, and it was Cindi-Kate's idea
|
||||||
@@ -309,7 +309,7 @@ Turf and target are seperate in case you want to teleport some distance from a t
|
|||||||
return clname(M)
|
return clname(M)
|
||||||
M.real_name = newname
|
M.real_name = newname
|
||||||
M.name = newname
|
M.name = newname
|
||||||
M.original_name = newname
|
M.mind.name = newname
|
||||||
|
|
||||||
for (var/obj/item/device/pda/pda in M.contents)
|
for (var/obj/item/device/pda/pda in M.contents)
|
||||||
if (pda.owner == oldname)
|
if (pda.owner == oldname)
|
||||||
|
|||||||
@@ -128,7 +128,6 @@
|
|||||||
S.canmove = 0//Can't move out of the soul stone
|
S.canmove = 0//Can't move out of the soul stone
|
||||||
S.name = "Shade of [T.real_name]"
|
S.name = "Shade of [T.real_name]"
|
||||||
S.real_name = "Shade of [T.real_name]"
|
S.real_name = "Shade of [T.real_name]"
|
||||||
S.original_name = "Shade of [T.real_name]"
|
|
||||||
if (T.client)
|
if (T.client)
|
||||||
T.client.mob = S
|
T.client.mob = S
|
||||||
S.cancel_camera()
|
S.cancel_camera()
|
||||||
|
|||||||
@@ -149,7 +149,6 @@
|
|||||||
if(!clonename) //to prevent null names
|
if(!clonename) //to prevent null names
|
||||||
clonename = "clone ([rand(0,999)])"
|
clonename = "clone ([rand(0,999)])"
|
||||||
H.real_name = clonename
|
H.real_name = clonename
|
||||||
H.original_name = clonename //we don't want random ghost names should we die again.
|
|
||||||
|
|
||||||
src.icon_state = "pod_1"
|
src.icon_state = "pod_1"
|
||||||
//Get the clone body ready
|
//Get the clone body ready
|
||||||
|
|||||||
@@ -889,7 +889,6 @@ obj/machinery/hydroponics/attackby(var/obj/item/O as obj, var/mob/user as mob)
|
|||||||
podman.real_name = realName
|
podman.real_name = realName
|
||||||
else
|
else
|
||||||
podman.real_name = "Pod Person [rand(0,999)]"
|
podman.real_name = "Pod Person [rand(0,999)]"
|
||||||
podman.original_name = podman.real_name
|
|
||||||
|
|
||||||
mind.transfer_to(podman)
|
mind.transfer_to(podman)
|
||||||
// -- Mode/mind specific stuff goes here. TODO! Broken :( Should be merged into mob/living/Login
|
// -- Mode/mind specific stuff goes here. TODO! Broken :( Should be merged into mob/living/Login
|
||||||
|
|||||||
@@ -1206,7 +1206,7 @@ var/global/BSACooldown = 0
|
|||||||
// world <<"Displaying info about the mob..."
|
// world <<"Displaying info about the mob..."
|
||||||
src.owner << "<b>Info about [M.name]:</b> "
|
src.owner << "<b>Info about [M.name]:</b> "
|
||||||
src.owner << "Mob type = [M.type]; Damage = [health_description]"
|
src.owner << "Mob type = [M.type]; Damage = [health_description]"
|
||||||
src.owner << "Name = <b>[M.name]</b>; Real_name = [M.real_name]; Original_name = [M.original_name]; Key = <b>[M.key]</b>;"
|
src.owner << "Name = <b>[M.name]</b>; Real_name = [M.real_name]; Mind_name = [M.mind?"[M.mind.name]":""]; Key = <b>[M.key]</b>;"
|
||||||
src.owner << "Location = [location_description];"
|
src.owner << "Location = [location_description];"
|
||||||
src.owner << "[special_role_description]"
|
src.owner << "[special_role_description]"
|
||||||
src.owner << "(<a href='?src=\ref[usr];priv_msg=\ref[M]'>PM</a>) (<A HREF='?src=\ref[src];adminplayeropts=\ref[M]'>PP</A>) (<A HREF='?src=\ref[src];adminplayervars=\ref[M]'>VV</A>) (<A HREF='?src=\ref[src];adminplayersubtlemessage=\ref[M]'>SM</A>) (<A HREF='?src=\ref[src];adminplayerobservejump=\ref[M]'>JMP</A>) (<A HREF='?src=\ref[src];secretsadmin=check_antagonist'>CA</A>)"
|
src.owner << "(<a href='?src=\ref[usr];priv_msg=\ref[M]'>PM</a>) (<A HREF='?src=\ref[src];adminplayeropts=\ref[M]'>PP</A>) (<A HREF='?src=\ref[src];adminplayervars=\ref[M]'>VV</A>) (<A HREF='?src=\ref[src];adminplayersubtlemessage=\ref[M]'>SM</A>) (<A HREF='?src=\ref[src];adminplayerobservejump=\ref[M]'>JMP</A>) (<A HREF='?src=\ref[src];secretsadmin=check_antagonist'>CA</A>)"
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ var/list/adminhelp_ignored_words = list("unknown","the","a","an", "monkey", "ali
|
|||||||
ai_found = 1
|
ai_found = 1
|
||||||
continue
|
continue
|
||||||
for(var/mob/M in mobs)
|
for(var/mob/M in mobs)
|
||||||
var/list/namelist = dd_text2list("[M.name] [M.real_name] [M.original_name] [M.ckey] [M.key]", " ")
|
var/list/namelist = dd_text2list("[M.name] [M.real_name] [(M.mind)?"[M.mind.name]":""] [M.ckey] [M.key]", " ")
|
||||||
var/word_is_match = 0 //Used to break from this mob for loop if a match is found
|
var/word_is_match = 0 //Used to break from this mob for loop if a match is found
|
||||||
for(var/namepart in namelist)
|
for(var/namepart in namelist)
|
||||||
if( lowertext(word) == lowertext(namepart) )
|
if( lowertext(word) == lowertext(namepart) )
|
||||||
|
|||||||
@@ -361,7 +361,6 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
|||||||
else
|
else
|
||||||
new_character.real_name = capitalize(pick(first_names_female)) + " " + capitalize(pick(last_names))
|
new_character.real_name = capitalize(pick(first_names_female)) + " " + capitalize(pick(last_names))
|
||||||
new_character.name = new_character.real_name
|
new_character.name = new_character.real_name
|
||||||
new_character.original_name = new_character.real_name
|
|
||||||
|
|
||||||
if(G_found.mind && !G_found.mind.active)
|
if(G_found.mind && !G_found.mind.active)
|
||||||
G_found.mind.transfer_to(new_character) //be careful when doing stuff like this! I've already checked the mind isn't in use
|
G_found.mind.transfer_to(new_character) //be careful when doing stuff like this! I've already checked the mind isn't in use
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
attack_log = body.attack_log //preserve our attack logs by copying them to our ghost
|
attack_log = body.attack_log //preserve our attack logs by copying them to our ghost
|
||||||
|
|
||||||
gender = body.gender
|
gender = body.gender
|
||||||
if(body.original_name)
|
if(body.mind && body.mind.name)
|
||||||
name = body.original_name
|
name = body.mind.name
|
||||||
else
|
else
|
||||||
if(body.real_name)
|
if(body.real_name)
|
||||||
name = body.real_name
|
name = body.real_name
|
||||||
@@ -34,7 +34,6 @@
|
|||||||
if(!name) //To prevent nameless ghosts
|
if(!name) //To prevent nameless ghosts
|
||||||
name = capitalize(pick(first_names_male)) + " " + capitalize(pick(last_names))
|
name = capitalize(pick(first_names_male)) + " " + capitalize(pick(last_names))
|
||||||
real_name = name
|
real_name = name
|
||||||
original_name = name
|
|
||||||
return
|
return
|
||||||
|
|
||||||
/mob/dead/CanPass(atom/movable/mover, turf/target, height=0, air_group=0)
|
/mob/dead/CanPass(atom/movable/mover, turf/target, height=0, air_group=0)
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
/mob/living/simple_animal/constructbehemoth
|
/mob/living/simple_animal/constructbehemoth
|
||||||
name = "Behemoth"
|
name = "Behemoth"
|
||||||
real_name = "Behemoth"
|
real_name = "Behemoth"
|
||||||
original_name = "Behemoth"
|
|
||||||
desc = "The pinnacle of occult technology, Behemoths are the ultimate weapon in the Cult of Nar-Sie's arsenal."
|
desc = "The pinnacle of occult technology, Behemoths are the ultimate weapon in the Cult of Nar-Sie's arsenal."
|
||||||
icon = 'icons/mob/mob.dmi'
|
icon = 'icons/mob/mob.dmi'
|
||||||
icon_state = "behemoth"
|
icon_state = "behemoth"
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
/mob/living/simple_animal/constructarmoured
|
/mob/living/simple_animal/constructarmoured
|
||||||
name = "Juggernaut"
|
name = "Juggernaut"
|
||||||
real_name = "Juggernaut"
|
real_name = "Juggernaut"
|
||||||
original_name = "Juggernaut"
|
|
||||||
desc = "A possessed suit of armour driven by the will of the restless dead"
|
desc = "A possessed suit of armour driven by the will of the restless dead"
|
||||||
icon = 'icons/mob/mob.dmi'
|
icon = 'icons/mob/mob.dmi'
|
||||||
icon_state = "behemoth"
|
icon_state = "behemoth"
|
||||||
@@ -142,7 +141,6 @@
|
|||||||
/mob/living/simple_animal/constructwraith
|
/mob/living/simple_animal/constructwraith
|
||||||
name = "Wraith"
|
name = "Wraith"
|
||||||
real_name = "Wraith"
|
real_name = "Wraith"
|
||||||
original_name = "Wraith"
|
|
||||||
desc = "A wicked bladed shell contraption piloted by a bound spirit"
|
desc = "A wicked bladed shell contraption piloted by a bound spirit"
|
||||||
icon = 'icons/mob/mob.dmi'
|
icon = 'icons/mob/mob.dmi'
|
||||||
icon_state = "floating"
|
icon_state = "floating"
|
||||||
@@ -268,7 +266,6 @@
|
|||||||
/mob/living/simple_animal/constructbuilder
|
/mob/living/simple_animal/constructbuilder
|
||||||
name = "Artificer"
|
name = "Artificer"
|
||||||
real_name = "Artificer"
|
real_name = "Artificer"
|
||||||
original_name = "Artificer"
|
|
||||||
desc = "A bulbous construct dedicated to building and maintaining The Cult of Nar-Sie's armies"
|
desc = "A bulbous construct dedicated to building and maintaining The Cult of Nar-Sie's armies"
|
||||||
icon = 'icons/mob/mob.dmi'
|
icon = 'icons/mob/mob.dmi'
|
||||||
icon_state = "artificer"
|
icon_state = "artificer"
|
||||||
|
|||||||
@@ -131,7 +131,7 @@
|
|||||||
|
|
||||||
//Speaking
|
//Speaking
|
||||||
if(speak_chance)
|
if(speak_chance)
|
||||||
if(prob(speak_chance))
|
if(rand(0,200) < speak_chance)
|
||||||
if(speak && speak.len)
|
if(speak && speak.len)
|
||||||
if((emote_hear && emote_hear.len) || (emote_see && emote_see.len))
|
if((emote_hear && emote_hear.len) || (emote_see && emote_see.len))
|
||||||
var/length = speak.len
|
var/length = speak.len
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
/mob/living/simple_animal/shade
|
/mob/living/simple_animal/shade
|
||||||
name = "Shade"
|
name = "Shade"
|
||||||
real_name = "Shade"
|
real_name = "Shade"
|
||||||
original_name = "Shade"
|
|
||||||
desc = "A bound spirit"
|
desc = "A bound spirit"
|
||||||
icon = 'icons/mob/mob.dmi'
|
icon = 'icons/mob/mob.dmi'
|
||||||
icon_state = "shade"
|
icon_state = "shade"
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
var/ear_damage = null //Carbon
|
var/ear_damage = null //Carbon
|
||||||
var/stuttering = null //Carbon
|
var/stuttering = null //Carbon
|
||||||
var/real_name = null
|
var/real_name = null
|
||||||
var/original_name = null //Original name is only used in ghost chat! It is not to be edited by anything!
|
// var/original_name = null //Original name is only used in ghost chat! Depracated, now used bb
|
||||||
var/blinded = null
|
var/blinded = null
|
||||||
var/bhunger = 0 //Carbon
|
var/bhunger = 0 //Carbon
|
||||||
var/ajourn = 0
|
var/ajourn = 0
|
||||||
|
|||||||
@@ -30,22 +30,19 @@
|
|||||||
|
|
||||||
if(!M || !ismob(M))
|
if(!M || !ismob(M))
|
||||||
usr << "Type path is not a mob (new_type = [new_type]) in change_mob_type(). Contact a coder."
|
usr << "Type path is not a mob (new_type = [new_type]) in change_mob_type(). Contact a coder."
|
||||||
del(M)
|
del(M)
|
||||||
return
|
return
|
||||||
|
|
||||||
if( istext(new_name) )
|
if( istext(new_name) )
|
||||||
M.name = new_name
|
M.name = new_name
|
||||||
M.original_name = new_name
|
|
||||||
M.real_name = new_name
|
M.real_name = new_name
|
||||||
else
|
else
|
||||||
M.name = src.name
|
M.name = src.name
|
||||||
M.original_name = src.original_name
|
|
||||||
M.real_name = src.real_name
|
M.real_name = src.real_name
|
||||||
|
|
||||||
M.dna = src.dna
|
M.dna = src.dna
|
||||||
M.UI = src.UI
|
M.UI = src.UI
|
||||||
|
|
||||||
|
|
||||||
if(mind)
|
if(mind)
|
||||||
mind.transfer_to(M)
|
mind.transfer_to(M)
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -713,7 +713,6 @@ datum/preferences
|
|||||||
real_name += "[pick(last_names)]"
|
real_name += "[pick(last_names)]"
|
||||||
|
|
||||||
character.real_name = real_name
|
character.real_name = real_name
|
||||||
character.original_name = real_name //Original name is only used in ghost chat! It is not to be edited by anything!
|
|
||||||
|
|
||||||
character.gender = gender
|
character.gender = gender
|
||||||
|
|
||||||
|
|||||||
@@ -26,10 +26,12 @@
|
|||||||
var/name = src.real_name
|
var/name = src.real_name
|
||||||
var/alt_name = ""
|
var/alt_name = ""
|
||||||
|
|
||||||
if(original_name) //Original name is only used in ghost chat! It is not to be edited by anything!
|
if(mind && mind.name)
|
||||||
name = src.original_name
|
name = "[mind.name]"
|
||||||
if( original_name != real_name )
|
else
|
||||||
alt_name = " (died as [src.real_name])"
|
name = real_name
|
||||||
|
if(name != real_name)
|
||||||
|
alt_name = " (died as [real_name])"
|
||||||
|
|
||||||
message = src.say_quote(message)
|
message = src.say_quote(message)
|
||||||
var/rendered = "<span class='game deadsay'><span class='prefix'>DEAD:</span> <span class='name'>[name]</span>[alt_name] <span class='message'>[message]</span></span>"
|
var/rendered = "<span class='game deadsay'><span class='prefix'>DEAD:</span> <span class='name'>[name]</span>[alt_name] <span class='message'>[message]</span></span>"
|
||||||
|
|||||||
Reference in New Issue
Block a user