Template talk:CreatureInfo v0.34

From Dwarf Fortress Wiki
Jump to navigation Jump to search


I think it would be nice to add information on eggs, although I'm not sure where to put them (I was thinking under "butchering returns" would be the most appropriate, but it isn't exactly a butchering byproduct).

Suggested edit: change this:

|#default={{infocell|'''Food items'''}}

...to this:

{{#if:{{{clutch_size|}}}|{{inforow|[[Egg_production#Egg-laying_Animals|clutch size]]|{{{clutch_size}}}|{{!-}}}}
{{#if:{{{egg_size|}}}|{{inforow|[[Egg]] size|{{{egg_size}}}|{{!-}}}}
{{infocell|'''Food items'''}}

I'm open to changing the placement of this information - I'd rather not make a new section for 2 items, but I suppose it could fit under tamed attributes as well (at least for .34). Ideas? --Lethosor (talk) 21:22, 4 March 2013 (UTC)

I don't think "Butchering returns" is the proper place for this information. Since only tame critters will currently claim a nest box and lay eggs, I think the "Tamed Attributes" box would be the best location. In fact, tame egglaying animals already have an "Egglaying" tag in the "Tamed Attributes" section. Clutch size is not currently indicated, but it could be added in the form "Egglaying (x - y)", or egglaying could be refactored into an "attribute/value" pair in "Tamed Attributes" like "Pet value" and "Grazer". Egg size is currently ignored by the game; it would probably be best not to include that information since it has no effect, and including it would imply that there is a difference. --Loci 19:55, 5 March 2013 (UTC)

Creaturelookup code[edit]

I've found this code to work for parsing out egg clutch sizes:


This should work for obtaining egg size:


--Lethosor (talk) 21:22, 4 March 2013 (UTC)