Ego / mbonus / mbonus_level help
Posted: Mon Mar 14, 2016 1:07 am
So one of the things that is long overdue on the wiki is updating ego descriptions. Many of them are far out of date.
It's easy enough for me to find the egos, it is less easy for me to understand them. For example, from lite.lua:
It's the mbonus functions that are giving me trouble here. I can track them back to mod/resolvers.lua, and that's when I start having trouble. I'd like to be able to turn something like
into "x to y increase" or the like.
So my questions here are:
1) How do I 'read' the mbonus family of functions? What do the inputs mean?
2) Is there an easy mapping from the function input to "gives x to y" output?
3) There is no question 3.
Thank you much!
It's easy enough for me to find the egos, it is less easy for me to understand them. For example, from lite.lua:
Code: Select all
newEntity{
power_source = {arcane=true},
name = " of the sun", suffix=true, instant_resolve=true,
keywords = {sun=true},
level_range = {30, 50},
greater_ego = 1,
rarity = 30,
cost = 30,
resolvers.charmt(Talents.T_SUN_FLARE, 3, 30),
wielder = {
inc_damage={
[DamageType.LIGHT] = resolvers.mbonus_material(10, 5),
},
resists={
[DamageType.DARKNESS] = resolvers.mbonus_material(10, 5),
},
lite=resolvers.mbonus_material(2, 1),
damage_affinity = { [DamageType.LIGHT] = 5 },
},
}
Code: Select all
resolvers.mbonus_material(10, 5),
So my questions here are:
1) How do I 'read' the mbonus family of functions? What do the inputs mean?
2) Is there an easy mapping from the function input to "gives x to y" output?
3) There is no question 3.

Thank you much!