TG: - Deleted ERP.dmi

- Moved some objects into /effect
- Removed the debugger object
Revision: r3739
Author: 	 baloh.matevz
This commit is contained in:
Erthilo
2012-06-07 02:41:38 +01:00
parent 3fb579d188
commit 2e8f1932a8
14 changed files with 246 additions and 304 deletions

View File

@@ -1,18 +1,18 @@
/obj/organstructure //used obj for the "contents" var
/obj/effect/organstructure //used obj for the "contents" var
name = "organs"
var/species = "mob" //for speaking in unknown languages purposes
var/obj/organ/limb/arms/arms = null
var/obj/organ/limb/legs/legs = null
var/obj/organ/torso/torso = null
var/obj/organ/head/head = null
var/obj/effect/organ/limb/arms/arms = null
var/obj/effect/organ/limb/legs/legs = null
var/obj/effect/organ/torso/torso = null
var/obj/effect/organ/head/head = null
proc/GetSpeciesName()
var/list/speciesPresent = list()
for(var/obj/organ/organ in src) //only external organs count, since it's judging by the appearance
for(var/obj/effect/organ/organ in src) //only external organs count, since it's judging by the appearance
if(speciesPresent[organ.species])
speciesPresent[organ.species]++
else
@@ -39,10 +39,10 @@
proc/RecalculateStructure()
var/list/organs = GetAllContents()
arms = locate(/obj/organ/limb/arms) in organs
legs = locate(/obj/organ/limb/legs) in organs
torso = locate(/obj/organ/torso) in organs
head = locate(/obj/organ/head) in organs
arms = locate(/obj/effect/organ/limb/arms) in organs
legs = locate(/obj/effect/organ/limb/legs) in organs
torso = locate(/obj/effect/organ/torso) in organs
head = locate(/obj/effect/organ/head) in organs
GetSpeciesName()
@@ -52,8 +52,7 @@
set background = 1
var/list/organs = GetAllContents()
for(var/name in organs)
var/obj/organ/organ = organs[name]
for(var/obj/effect/organ/organ in organs)
organ.ProcessOrgan()
return
@@ -62,27 +61,27 @@
..()
RecalculateStructure()
/obj/organstructure/human
/obj/effect/organstructure/human
name = "human organs"
New()
new /obj/organ/torso/human(src)
new /obj/effect/organ/torso/human(src)
..()
/obj/organstructure/alien
/obj/effect/organstructure/alien
name = "alien organs"
New()
new /obj/organ/torso/alien(src)
new /obj/effect/organ/torso/alien(src)
..()
/obj/organ
/obj/effect/organ
name = "organ"
//All types
var/organType = 0 //CYBER and SPELL go here
var/species = "mob"
var/obj/organstructure/rootOrganStructure = null
var/obj/effect/organstructure/rootOrganStructure = null
New(location)
..()
@@ -90,129 +89,129 @@
rootOrganStructure = FindRootStructure()
proc/FindRootStructure()
if(istype(loc,/obj/organ))
var/obj/organ/parent = loc
if(istype(loc,/obj/effect/organ))
var/obj/effect/organ/parent = loc
return parent.FindRootStructure()
else if(istype(loc,/obj/organstructure))
else if(istype(loc,/obj/effect/organstructure))
return loc
return null
proc/ProcessOrgan()
return
/obj/organ/torso
/obj/effect/organ/torso
name = "torso"
var/maxHealth = 50 //right now, the mob's (only humans for now) health depends only on it. Will be fixed later
/obj/organ/torso/human
/obj/effect/organ/torso/human
name = "human torso"
species = "human"
maxHealth = 100
New()
..()
new /obj/organ/limb/arms/human(src)
new /obj/organ/limb/legs/human(src)
new /obj/organ/head/human(src)
/obj/organ/torso/alien
new /obj/effect/organ/limb/arms/human(src)
new /obj/effect/organ/limb/legs/human(src)
new /obj/effect/organ/head/human(src)
/obj/effect/organ/torso/alien
name = "alien torso"
species = "alien"
maxHealth = 100
New()
..()
new /obj/organ/limb/arms/alien(src)
new /obj/organ/limb/legs/alien(src)
new /obj/organ/head/alien(src)
new /obj/effect/organ/limb/arms/alien(src)
new /obj/effect/organ/limb/legs/alien(src)
new /obj/effect/organ/head/alien(src)
/obj/organ/limb
/obj/effect/organ/limb
name = "limb"
/obj/organ/limb/arms
/obj/effect/organ/limb/arms
name = "arms"
var/minDamage = 5 //punching damage
var/maxDamage = 5
/obj/organ/limb/arms/alien
/obj/effect/organ/limb/arms/alien
name = "alien arms"
species = "alien"
minDamage = 5
maxDamage = 15
/obj/organ/limb/arms/human
/obj/effect/organ/limb/arms/human
name = "human arms"
species = "human"
minDamage = 1
maxDamage = 9
/obj/organ/limb/legs
/obj/effect/organ/limb/legs
name = "legs"
/obj/organ/limb/legs/human
/obj/effect/organ/limb/legs/human
name = "human legs"
species = "human"
/obj/organ/limb/legs/alien
/obj/effect/organ/limb/legs/alien
name = "alien legs"
species = "alien"
/obj/organ/head
/obj/effect/organ/head
name = "head"
/obj/organ/head/human
/obj/effect/organ/head/human
name = "human head"
species = "human"
/obj/organ/head/alien
/obj/effect/organ/head/alien
name = "alien head"
species = "alien"
/obj/organ/limb/arms/alien
/obj/effect/organ/limb/arms/alien
name = "alien arms"
species = "alien"
minDamage = 5
maxDamage = 15
/obj/organ/limb/legs/alien
/obj/effect/organ/limb/legs/alien
name = "alien legs"
species = "alien"
/obj/organ/head/alien
/obj/effect/organ/head/alien
name = "alien head"
species = "alien"
// ++++STUB ORGAN STRUCTURE. THIS IS THE DEFAULT STRUCTURE. USED TO PREVENT EXCEPTIONS++++
/obj/organstructure/stub
/obj/effect/organstructure/stub
name = "stub organs"
New()
new /obj/organ/torso/stub(src)
new /obj/effect/organ/torso/stub(src)
..()
/obj/organ/torso/stub
/obj/effect/organ/torso/stub
name = "stub torso"
species = "stub"
maxHealth = 100
New()
..()
new /obj/organ/limb/arms/stub(src)
new /obj/organ/limb/legs/stub(src)
new /obj/organ/head/stub(src)
new /obj/effect/organ/limb/arms/stub(src)
new /obj/effect/organ/limb/legs/stub(src)
new /obj/effect/organ/head/stub(src)
/obj/organ/limb/arms/stub
/obj/effect/organ/limb/arms/stub
name = "stub arms"
species = "stub"
/obj/organ/limb/legs/stub
/obj/effect/organ/limb/legs/stub
name = "stub legs"
species = "stub"
/obj/organ/head/stub
/obj/effect/organ/head/stub
name = "stub head"
species = "stub"
@@ -221,129 +220,129 @@
// ++++MONKEY++++
/obj/organstructure/monkey
/obj/effect/organstructure/monkey
name = "monkey organs"
New()
new /obj/organ/torso/monkey(src)
new /obj/effect/organ/torso/monkey(src)
..()
/obj/organ/torso/monkey
/obj/effect/organ/torso/monkey
name = "monkey torso"
species = "monkey"
maxHealth = 100
New()
..()
new /obj/organ/limb/arms/monkey(src)
new /obj/organ/limb/legs/monkey(src)
new /obj/organ/head/monkey(src)
new /obj/effect/organ/limb/arms/monkey(src)
new /obj/effect/organ/limb/legs/monkey(src)
new /obj/effect/organ/head/monkey(src)
/obj/organ/limb/arms/monkey
/obj/effect/organ/limb/arms/monkey
name = "monkey arms"
species = "monkey"
/obj/organ/limb/legs/monkey
/obj/effect/organ/limb/legs/monkey
name = "monkey legs"
species = "monkey"
/obj/organ/head/monkey
/obj/effect/organ/head/monkey
name = "monkey head"
species = "monkey"
// +++++CYBORG+++++
/obj/organstructure/cyborg
/obj/effect/organstructure/cyborg
name = "cyborg organs"
New()
new /obj/organ/torso/cyborg(src)
new /obj/effect/organ/torso/cyborg(src)
..()
/obj/organ/torso/cyborg
/obj/effect/organ/torso/cyborg
name = "cyborg torso"
species = "cyborg"
maxHealth = 100
New()
..()
new /obj/organ/limb/arms/cyborg(src)
new /obj/organ/limb/legs/cyborg(src)
new /obj/organ/head/cyborg(src)
new /obj/effect/organ/limb/arms/cyborg(src)
new /obj/effect/organ/limb/legs/cyborg(src)
new /obj/effect/organ/head/cyborg(src)
/obj/organ/limb/arms/cyborg
/obj/effect/organ/limb/arms/cyborg
name = "cyborg arms"
species = "cyborg"
/obj/organ/limb/legs/cyborg
/obj/effect/organ/limb/legs/cyborg
name = "cyborg legs"
species = "cyborg"
/obj/organ/head/cyborg
/obj/effect/organ/head/cyborg
name = "cyborg head"
species = "cyborg"
// +++++AI++++++
/obj/organstructure/AI
/obj/effect/organstructure/AI
name = "AI organs"
New()
new /obj/organ/torso/AI(src)
new /obj/effect/organ/torso/AI(src)
..()
/obj/organ/torso/AI
/obj/effect/organ/torso/AI
name = "AI torso"
species = "AI"
maxHealth = 100
New()
..()
new /obj/organ/limb/arms/AI(src)
new /obj/organ/limb/legs/AI(src)
new /obj/organ/head/AI(src)
new /obj/effect/organ/limb/arms/AI(src)
new /obj/effect/organ/limb/legs/AI(src)
new /obj/effect/organ/head/AI(src)
/obj/organ/limb/arms/AI
/obj/effect/organ/limb/arms/AI
name = "AI arms"
species = "AI"
/obj/organ/limb/legs/AI
/obj/effect/organ/limb/legs/AI
name = "AI legs"
species = "AI"
/obj/organ/head/AI
/obj/effect/organ/head/AI
name = "AI head"
species = "AI"
/* New organ structure template
/obj/organstructure/template
/obj/effect/organstructure/template
name = "template organs"
New()
new /obj/organ/torso/template(src)
new /obj/effect/organ/torso/template(src)
..()
/obj/organ/torso/template
/obj/effect/organ/torso/template
name = "template torso"
species = "template"
maxHealth = 100
New()
..()
new /obj/organ/limb/arms/template(src)
new /obj/organ/limb/legs/template(src)
new /obj/organ/head/template(src)
new /obj/effect/organ/limb/arms/template(src)
new /obj/effect/organ/limb/legs/template(src)
new /obj/effect/organ/head/template(src)
/obj/organ/limb/arms/template
/obj/effect/organ/limb/arms/template
name = "template arms"
species = "template"
/obj/organ/limb/legs/template
/obj/effect/organ/limb/legs/template
name = "template legs"
species = "template"
/obj/organ/head/template
/obj/effect/organ/head/template
name = "template head"
species = "template"