mob/proc/BreedWith(mob/TARGET,ALLOWED) spawn() //Don't want to lock up our callers on sleeps, so we spawn, that means no return values.
//Notably, setting "ALLOWED" is used to just skip asking for permission if your owners aren't the same.
if(Gender=="Male" && TARGET.Gender=="Female")
if(TARGET.Gender=="Male" && Gender=="Female")
if(MALE.Critter) if(!FEMALE.Critter) return
if(FEMALE.Critter) if(!MALE.Critter) return
Problem description: Code\Creatures\Breeding.dm:27:error: .: missing comma ',' or right-paren ')'
Line 27 is referring to switch(MALE.Race)
So, I am attempting to revitalize Dungeon Master and I have immediately come across an error upon attempting to compile the application. This code in particular was utilized around 2012, so I am assuming there was a syntax change by now that is causing this. Or, this commit was not checked beforehand.
It looks like this error occurs whenever we attempt to call the object's properties, but I was unsure off how to solve this since I am unfamiliar with BYOND's syntax. I'll be looking for sources for current syntax as well.