Resolves compile errors with the exception of map errors.

This commit is contained in:
Cameron653
2019-01-12 21:09:29 -05:00
parent fb6f5e33ca
commit 9dd973221d
140 changed files with 1223 additions and 1211 deletions

View File

@@ -3,7 +3,7 @@ Slime specific life events go here.
*/
#define HAPPYLEVEL 200
#define ANGRYLEVEL 10
/mob/living/simple_animal/xeno/slime/Life()
/mob/living/simple_mob/xeno/slime/Life()
. = ..()
if(..())
if(health)
@@ -15,8 +15,8 @@ Slime specific life events go here.
growthcounter--
if(growthcounter >= growthpoint)
src.GrowUp()
else
else
if(nutrition < 0)
nutrition = 0
if((prob(10) && !emote_on)) //Slimes might display their food-based emotions over time.
@@ -28,7 +28,7 @@ Slime specific life events go here.
I.icon_state = "aslime-:33"
else
I.icon_state = "aslime-:3"
else if((nutrition > ANGRYLEVEL))
if((nutrition >= 10 * ANGRYLEVEL))
I.icon_state = "aslime-pout"
@@ -41,7 +41,7 @@ Slime specific life events go here.
spawn(30)
GenerateAdultIcon()
emote_on = null
else
if(is_child)
icon_state = "slime baby dead"
@@ -49,7 +49,7 @@ Slime specific life events go here.
overlays.Cut()
icon_state = "slime adult dead"
color = traitdat.traits[TRAIT_XENO_COLOR]
return 0 //Everything worked okay
return //xeno/Life() returned 0.

View File

@@ -2,10 +2,10 @@
Slime specific procs go here.
*/
#define SHINYOVERLAY 0
#define LIGHTOVERLAY 1
#define LIGHTOVERLAY 1
#define MAXOVERLAY 2 //Should be 1 + last overlay, to give the chance for matte slimes
/mob/living/simple_animal/xeno/slime/RandomizeTraits()
/mob/living/simple_mob/xeno/slime/RandomizeTraits()
traitdat.traits[TRAIT_XENO_COLDRES] = rand(30,270)
traitdat.traits[TRAIT_XENO_HEATRES] = rand(30,270)
traitdat.traits[TRAIT_XENO_CHEMVOL] = round(rand(20,40)) //Wow, a slime core with the capacity to hold 2/3rd's a beaker's worth of chemicals.
@@ -23,8 +23,8 @@ Slime specific procs go here.
traitdat.traits[TRAIT_XENO_STR_RANGE] =round(rand(0,2))
traitdat.traits[TRAIT_XENO_CANLEARN] = prob(68)
traitdat.traits[TRAIT_XENO_SPEED] = round(rand(-10,10))
/mob/living/simple_animal/xeno/slime/RandomChemicals()
/mob/living/simple_mob/xeno/slime/RandomChemicals()
..()
if(prob(40))
var/hasMutToxin
@@ -34,7 +34,7 @@ Slime specific procs go here.
var/chemamount
if(hasMutToxin)
var/list/chemchoices = (xenoChemList - traitdat.chems)
var/chemtype = pick(chemchoices)
chemamount = rand(1,5)
traitdat.chems[chemtype] = chemamount
@@ -42,16 +42,16 @@ Slime specific procs go here.
chemamount = rand(1,5)
traitdat.chems["mutationtoxin"] = chemamount
/mob/living/simple_animal/xeno/slime/proc/GrowUp()
/mob/living/simple_mob/xeno/slime/proc/GrowUp()
GenerateAdult()
maxHealth = traitdat.get_trait(TRAIT_XENO_HEALTH)
health = maxHealth
is_child = 0
return 1
/mob/living/simple_animal/xeno/slime/Mutate()
/mob/living/simple_mob/xeno/slime/Mutate()
..()
cores = round(rand(1,9))
if(is_child)
@@ -59,8 +59,8 @@ Slime specific procs go here.
GenerateChild()
else
GenerateAdult()
/mob/living/simple_animal/xeno/slime/proc/GenerateChild()
/mob/living/simple_mob/xeno/slime/proc/GenerateChild()
overlays.Cut()
name = "[nameVar] baby slime"
real_name = "[nameVar] baby slime"
@@ -71,10 +71,10 @@ Slime specific procs go here.
color = traitdat.traits[TRAIT_XENO_COLOR]
maxHealth = traitdat.traits[TRAIT_XENO_HEALTH]/2
health = maxHealth
return 1
/mob/living/simple_animal/xeno/slime/proc/GenerateAdult()
/mob/living/simple_mob/xeno/slime/proc/GenerateAdult()
overlays.Cut()
name = "[nameVar] slime"
real_name = "[nameVar] slime"
@@ -83,15 +83,15 @@ Slime specific procs go here.
icon_state = ""
overlay = round(rand(0, MAXOVERLAY))
GenerateAdultIcon()
/mob/living/simple_animal/xeno/slime/proc/GenerateAdultIcon() //Hack and slash adventure game to make slimes have no color on light effects later
/mob/living/simple_mob/xeno/slime/proc/GenerateAdultIcon() //Hack and slash adventure game to make slimes have no color on light effects later
overlays.Cut()
var/image/Img = new(src.icon)
Img.icon_state = "slime adult"
Img.color = traitdat.traits[TRAIT_XENO_COLOR]
Img.layer = src.layer
overlays += Img
switch(overlay)
if(SHINYOVERLAY)
var/image/I = new(src.icon)
@@ -109,7 +109,7 @@ Slime specific procs go here.
I.color = "#FFFFFF"
overlays += I
/mob/living/simple_animal/xeno/slime/handle_reagents()
/mob/living/simple_mob/xeno/slime/handle_reagents()
if(!stasis)
if(!reagents)
return
@@ -119,11 +119,10 @@ Slime specific procs go here.
hostile = 0
traitdat.traits[TRAIT_XENO_HOSTILE] = 0
..()
/mob/living/simple_animal/xeno/slime/ProcessTraits()
/mob/living/simple_mob/xeno/slime/ProcessTraits()
..()
if(is_child)
GenerateChild()
else
GenerateAdult()

View File

@@ -1,7 +1,7 @@
/*
Slime definitions, Life and New live here.
*/
/mob/living/simple_animal/xeno/slime //Adult values are found here
/mob/living/simple_mob/xeno/slime //Adult values are found here
nameVar = "grey" //When mutated, nameVar might change.
desc = "A shifting, mass of goo."
faction = "slime"
@@ -80,7 +80,7 @@ Slime definitions, Life and New live here.
"woodpulp" = list("heal" = 0.1, "nutr" = 0.7),
"docilitytoxin" = list("nutr" = 0.3) )
/mob/living/simple_animal/xeno/slime/New()
/mob/living/simple_mob/xeno/slime/New()
..()
for(var/datum/language/L in (typesof(/datum/language) - /datum/language))
languages += L

View File

@@ -8,7 +8,7 @@ Procs for copying speech, if applicable
Procs for targeting
Divergence proc, used in mutation to make unique datums.
*/
/mob/living/simple_animal/xeno/proc/ProcessTraits()
/mob/living/simple_mob/xeno/proc/ProcessTraits()
if(maleable >= MAX_MALEABLE)
maxHealth = traitdat.get_trait(TRAIT_XENO_HEALTH)
health = maxHealth
@@ -46,7 +46,7 @@ Divergence proc, used in mutation to make unique datums.
//Metabolism proc, simplified for xenos. Heavily based on botanical metabolism.
/mob/living/simple_animal/xeno/proc/handle_reagents()
/mob/living/simple_mob/xeno/proc/handle_reagents()
if(!stasis)
if(!reagents)
return
@@ -85,13 +85,13 @@ Divergence proc, used in mutation to make unique datums.
return 1 //Everything worked out okay.
return 0
/mob/living/simple_animal/xeno/proc/diverge()
/mob/living/simple_mob/xeno/proc/diverge()
var/datum/xeno/traits/newtraits = new()
newtraits.copy_traits(traitdat)
return newtraits
/mob/living/simple_animal/xeno/proc/Mutate()
/mob/living/simple_mob/xeno/proc/Mutate()
traitdat = diverge()
nameVar = "mutated"
if((COLORMUT & mutable))
@@ -109,10 +109,10 @@ Divergence proc, used in mutation to make unique datums.
ProcessTraits()
return 1
/mob/living/simple_animal/xeno/proc/RandomizeTraits()
/mob/living/simple_mob/xeno/proc/RandomizeTraits()
return
/mob/living/simple_animal/xeno/hear_say(var/message, var/verb = "says", var/datum/language/language, var/alt_name = "",var/italics = 0, var/mob/speaker = null)
/mob/living/simple_mob/xeno/hear_say(var/message, var/verb = "says", var/datum/language/language, var/alt_name = "",var/italics = 0, var/mob/speaker = null)
if(traitdat.traits[TRAIT_XENO_CANLEARN])
/*
Until this gets sorted out to a functioning point, or waiting on Psi's saycode update.
@@ -130,7 +130,7 @@ Divergence proc, used in mutation to make unique datums.
speech_buffer.Add(message)
..(message,verb,language,alt_name,italics,speaker)
/mob/living/simple_animal/xeno/proc/ProcessSpeechBuffer()
/mob/living/simple_mob/xeno/proc/ProcessSpeechBuffer()
if(speech_buffer.len)
if(prob(traitdat.get_trait(TRAIT_XENO_LEARNCHANCE)) && traitdat.get_trait(TRAIT_XENO_CANLEARN))
var/chosen = pick(speech_buffer)
@@ -140,10 +140,10 @@ Divergence proc, used in mutation to make unique datums.
log_debug("Speechlist cut.") */
speech_buffer.Cut()
//
/mob/living/simple_animal/xeno/proc/BuildReagentLists()
/mob/living/simple_mob/xeno/proc/BuildReagentLists()
return
/mob/living/simple_animal/xeno/bullet_act(var/obj/item/projectile/P)
/mob/living/simple_mob/xeno/bullet_act(var/obj/item/projectile/P)
//Shamelessly stolen from ablative armor.
if((traitdat.traits[TRAIT_XENO_CHROMATIC]) && istype(P, /obj/item/projectile/beam))
visible_message("<span class='danger'>)\The beam reflects off of the [src]!</span>")
@@ -161,7 +161,7 @@ Divergence proc, used in mutation to make unique datums.
else
..()
/mob/living/simple_animal/xeno/proc/RandomChemicals()
/mob/living/simple_mob/xeno/proc/RandomChemicals()
traitdat.chems.Cut() //Clear the amount first.
var/num_chems = round(rand(1,4))

View File

@@ -5,7 +5,7 @@ Basic definition of creatures for Xenobiology
Also includes Life and New
*/
/mob/living/simple_animal/xeno
/mob/living/simple_mob/xeno
name = "Xeno"
real_name = "Xeno"
faction = "xeno" //Needs to be set.
@@ -46,7 +46,7 @@ Also includes Life and New
//Life additions
/mob/living/simple_animal/xeno/Life()
/mob/living/simple_mob/xeno/Life()
if(stasis)
stasis--
if(stasis < 0)
@@ -74,7 +74,7 @@ Also includes Life and New
return 1 //Everything worked okay.
/mob/living/simple_animal/xeno/New()
/mob/living/simple_mob/xeno/New()
traitdat = new()
@@ -95,13 +95,13 @@ Also includes Life and New
if(!health)
stat = DEAD
/mob/living/simple_animal/xeno/bullet_act(var/obj/item/projectile/Proj)
/mob/living/simple_mob/xeno/bullet_act(var/obj/item/projectile/Proj)
if(istype(Proj, /obj/item/projectile/beam/stun/xeno))
var/obj/item/projectile/beam/stun/xeno/hit = Proj
stasis += hit.stasisforce
..()
/mob/living/simple_animal/xeno/Destroy()
/mob/living/simple_mob/xeno/Destroy()
traitdat.Destroy() //Let's clean up after ourselves.
traitdat = null
..()