Summary: Currently, buffs will multiply base attributes but will not add to its value.
Code:
The following code does not do anything
{
"type" : "buff",
"name" : "MyBuff",
"description" : "My Test Buff",
"icon" : "file(My_Buff.png)",
"modifiers" : {
"courage" : {
"add" : 20
}
}
}
Expected Results:
Courage will be raised by 20 whenever the buff is applied.
Actual Results:
Using ‘add’ will not change the value of the attribute. This can be seen with the “Combat Basics” buff that is applied when a hearthling is promoted to a footman. It is set to add 100 courage, but has no effect.
Notes:
The following will work perfectly:
{
"type" : "buff",
"name" : "MyBuff",
"description" : "My Test Buff",
"icon" : "file(My_Buff.png)",
"modifiers" : {
"courage" : {
"multiply" : 1.20
}
}
}
Multiply works perfectly - I have tested this in game with a mod I am currently working on.
Version: r375 + mod in development (no changes have been made to bork Combat Basics)