if you wanted to add a rule in for damage bonuses, all you should have to do is add:
In attack.cpp
Code:
if(RuleB(Combat, UseDamageBonus)){
}
So that it encompasses your damage bonus calculations completely.
Then, just add it to the ruletypes.h file like this:
Code:
RULE_BOOL ( Combat, UseDamageBonus, true) //default is true to enable damage bonuses
into the combat section of the file.
Then just add the optional SQL if you want to disable it. But you don't even need the SQL if you want to leave it enabled, since the default is true:
Optional SQL:
Code:
Insert into rule_values values (0, 'Combat:UseDamageBonus', true);