Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Updated all pages for the DF2012 "bugs"  (Read 1500 times)

Naryar

  • Bay Watcher
  • [SPHERE:VERMIN][LIKES_FIGHTING]
    • View Profile
Updated all pages for the DF2012 "bugs"
« on: March 21, 2012, 04:01:30 pm »

I wrote an article for all the giant bugs, i have just a problem. Giant snail page won't give size.

I am guessing it is because the code detects the SIZE tokens and there are none in the giant snail raws (since it's a giant creature).

Maybe we should add size to the RAW, but it will not be the vanilla RAW, or simply add size somewhere in the page ?

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Updated all pages for the DF2012 "bugs"
« Reply #1 on: March 21, 2012, 06:34:26 pm »

There's currently a template with a giant switch() statement in it that returns what creature sizes are supposed to be. With some changes I've made to DFRawFunctions, though, it should now be possible to calculate most of those automatically (it can fetch the last matching BODY_SIZE token, and it can properly get CHANGE_BODY_SIZE_PERC and GRAVITATE_BODY_SIZE when using creature variations) - the only ones that'll have to remain hardcoded are the creatures that have caste-specific body sizes (e.g. ant men).
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Naryar

  • Bay Watcher
  • [SPHERE:VERMIN][LIKES_FIGHTING]
    • View Profile
Re: Updated all pages for the DF2012 "bugs"
« Reply #2 on: March 22, 2012, 05:55:02 am »

So what must I use, and how can I use it ?