[A17] Pawns Are Capable! (No More Disabled Work!) Updated 06/14/2017!

Started by Rimrue, May 31, 2017, 04:18:41 AM

Previous topic - Next topic

Rimrue

My traits currently display that same info on the character tab. Not sure if the other traits that affect mood (Night Owl, for instance) shows the mood buff/debuff. If they do, I will change mine to do so as well.

Clearly you know more about xpathing than I do. ;) Perhaps you and SpaceDorf could work together to patch EdB then so he can add PaC to his game. For my purposes, I've done all the changes to the EdB backstories already. I'm now working on adding the vanilla player-created characters. Up to 99 now. :)

AngleWyrm


An XML look-up table
Another way to look at the mapping from work disables to traits, as a set of dictionary entries stored in the Defs collection.

This one creates a new data type called /Defs/backstoryMapper which provides a place to store the linking between a work disable and a forced trait.

Then each adjustment can be tuned without recompiling, as pure data in an xml. And because it's automated, there's no opportunity for human error or maintenance of changing data.

Example xml generated from/for the schema
<Defs>
  <backstoryMapper WorkDisable="DumbLabor">
    <trait>HatesSweeping</trait>
    <subtype>-2</subtype>
  </backstoryMapper>
  <backstoryMapper WorkDisable="Violence">
    <trait>TreeHugger</trait>
    <subtype>0</subtype>
  </backstoryMapper>
</Defs>


[attachment deleted by admin due to age]
My 5-point rating system: Yay, Kay, Meh, Erm, Bleh

Rimrue

That's really cool. Wish I'd known you could do that before I hand-coded all the forcedTraits! Lol


AngleWyrm




I like to think of it as industriously lazy
My 5-point rating system: Yay, Kay, Meh, Erm, Bleh