Page 1 of 1

Rewriting Life()

Posted: Mon Apr 21, 2014 3:18 pm
by Miauw
Life(). Life() never changes...

Mainly because it's so huge and bloated that it's basically impossible to rewrite.
By yourself.

Life() has to be rewritten, and one coder alone cannot do this, be it attention span or motivation. So what if we did it togheter?
I suggest that we organize something so every willing coder updates and refactors one or two of the procs in Life(), so it becomes manageable again, and other things *coughdatummutantracescough* could be implemented with relative ease.

Re: Rewriting Life()

Posted: Mon Apr 21, 2014 3:27 pm
by Stephie
I gave up on mobcode when I found that pieces of food code (Nuka Cola) somehow ended up there. It's a mess, no other word for it.

Re: Rewriting Life()

Posted: Mon Apr 21, 2014 3:28 pm
by Psyentific
Stephie wrote:I gave up on mobcode when I found that pieces of food code (Nuka Cola) somehow ended up there. It's a mess, no other word for it.
how do you even
i wat
u wot
i cannot even
wat

I mean, there's spaghetti code, then there's whatever that is.

Re: Rewriting Life()

Posted: Mon Apr 21, 2014 3:29 pm
by Jeb
everyone knows that cola is life()

Re: Rewriting Life()

Posted: Mon Apr 21, 2014 3:55 pm
by Stephie
Psyentific wrote:
Stephie wrote:I gave up on mobcode when I found that pieces of food code (Nuka Cola) somehow ended up there. It's a mess, no other word for it.
how do you even
i wat
u wot
i cannot even
wat

I mean, there's spaghetti code, then there's whatever that is.
To explain, Nuka Cola and Hyperzine had a mention in human and mokey code, as they eliminated any slowdown and enabled sanic speeds. I just checked the mob code again, and it looks like they are gone from human code now (replaced by GOTTAGOFAST flag), but monkey.dm still has them:

Image

With that said, it looks like they never were a part of Life() code, so sorry for off topic.

Re: Rewriting Life()

Posted: Mon Apr 21, 2014 9:51 pm
by Remie Richards
Don't Miauw, please... I like you... Rewriting Life() will destroy your Real life()!

You won't come back alive/sane if you do this...

Re: Rewriting Life()

Posted: Mon Apr 21, 2014 11:02 pm
by Jalleo
Ill help next year. Sometime someday.

Anyhow

Miauw consider this a long haul slow rework where you touch it only when required.
I know you want to get changeling better but if its that big only superman can do it....

Re: Rewriting Life()

Posted: Mon Apr 21, 2014 11:51 pm
by Aranclanos
Did you know that all humans check if they are wearing a ninja mask each second?

Re: Rewriting Life()

Posted: Mon Apr 21, 2014 11:56 pm
by iamgoofball
Aranclanos wrote:Did you know that all humans check if they are wearing a ninja mask each second?
why

why do we even have this

can we just like

remove ninja forever

Re: Rewriting Life()

Posted: Tue Apr 22, 2014 12:21 am
by Numbers
remove ninja forever
Yeah good luck.

Re: Rewriting Life()

Posted: Fri Jun 27, 2014 1:56 pm
by Rockdtben
Aranclanos wrote:Did you know that all humans check if they are wearing a ninja mask each second?

Code: Select all

			if(istype(wear_mask, /obj/item/clothing/mask/gas/voice/space_ninja))
				var/obj/item/clothing/mask/gas/voice/space_ninja/O = wear_mask
				switch(O.mode)
					if(0)
						var/target_list[] = list()
						for(var/mob/living/target in oview(src))
							if( target.mind&&(target.mind.special_role||issilicon(target)) )//They need to have a mind.
								target_list += target
						if(target_list.len)//Everything else is handled by the ninja mask proc.
							O.assess_targets(target_list, src)
						see_invisible = SEE_INVISIBLE_LIVING
					if(1)
						see_in_dark = 5
						see_invisible = SEE_INVISIBLE_LIVING
					if(2)
						sight |= SEE_MOBS
						see_invisible = SEE_INVISIBLE_LEVEL_TWO
					if(3)
						sight |= SEE_TURFS
						see_invisible = SEE_INVISIBLE_LIVING
>Ninja code writer sees opportunity to put shit in proc for masks.
>Decides to snowflake instead
>Scumbag Ninja

Re: Rewriting Life()

Posted: Sat Jun 28, 2014 5:26 am
by paprika
I can't stop laughing it's like ninja is worse than I expected

Re: Rewriting Life()

Posted: Sat Jun 28, 2014 12:01 pm
by Munchlax
Dat necro.

Re: Rewriting Life()

Posted: Wed Jul 02, 2014 10:28 am
by Malkevin
Stephie wrote:
Psyentific wrote:
Stephie wrote:I gave up on mobcode when I found that pieces of food code (Nuka Cola) somehow ended up there. It's a mess, no other word for it.
how do you even
i wat
u wot
i cannot even
wat

I mean, there's spaghetti code, then there's whatever that is.
To explain, Nuka Cola and Hyperzine had a mention in human and mokey code, as they eliminated any slowdown and enabled sanic speeds. I just checked the mob code again, and it looks like they are gone from human code now (replaced by GOTTAGOFAST flag), but monkey.dm still has them:

Image

With that said, it looks like they never were a part of Life() code, so sorry for off topic.
Yeah I was required to change that when I made unholy water make cultists go fast.

Now it sets the mob's sanic flag, which means movement only does one check per movement instead going through a mob's reagent list to check if one of those reagents is the specified chemical... for each chemical