SozenCratosFocker wrote on 2015-06-17 09:47
Since this is based on the item's ID, and the wiki is is against data mining right now, this information might never make it into any actual wiki articles, so people who use the wiki without reading the talk pages probably aren't aware of it.
http://wiki.mabinogiworld.com/view/Talk:Giving_to_your_Spirit_Weapon#First_pattern_discovered.21_23778
Incase they end up deleting that thread, here's a copy of Doomsday31415's explanation:
...
The stat boosted is based on the item's ID.
This confirms that items with various prices but the same ID all give the same stat.
The stat boosted for the female spirit is the stat boosted for the male spirit of the item with an ID 1 higher.
In other words, if "5 Sign" (ID 40062) gives the Male Blunt str, then "4 Sign" (ID 40061) will give Female Blunt str.
Similarly, all the types simply offset the ID:
Male Sword: 1
Female Sword: 2
Male Blunt: 3
Female Blunt: 4
Male Wand: 5
Female Wand: 6
Male Bow: 7
Female Bow: 8
Male Cylinder: 15
Female Cylinder: 16
...
The rest of the thread has tables for a few groups of item IDs, but not everything.
Rydian wrote on 2015-06-17 11:52
Yeah I checked out the "feed according to ID" thing back when I was experimenting with them, it's neat to know.
As far as static data...
[spoiler="xml files"]egodesc.xml lists the types of ego weapons (male/female weapon categories) and their growth rates for stats, A, B, or C. Lists growth patterns for the various forms of Eiry, too.
egodesire.xml lists the spirit weapons (by item ID) and their stat growth rates based on "desire" (with lower desire giving normal rates and higher desire cutting the EXP down). This matches what we know about feeding them when they're annoyed instead of happy.
egoeffect.xml is simply the level-color list.
egofeed.xml lists specific items you can feed egos that overrides the normal behavior. This is gems, for example, but also includes Spirit Blue Liqueur (52053) and the Nekojima gems.
egoitem.xml lists which item makes which ego.
egolevleup.xml is all of the stats for all of the levels for all the egos.[/spoiler]
Now as far as actual scripts and coding, there's a main ego script file as a base, and then each type of ego works off of that.
"Desire" appears to be the word that the game uses to describe an ego's fullness level (opposed to hunger like it sounds). Less desire is more hungry so I'd describe it as hunger. Egos check if the item you're going to give them has a price of 10K or above, has been upgraded or enchanted, or has 10 or more prof. If so, they'll ask a confirmation before eating it.
And bleh, I'm too lazy to dig through all of these scripts now, maybe later.