For the last couple of days, I've been working on the vampire. It's almost done, but I'm having trouble with one class feature, which gives them a scaling bonus to damage with vampire class and vampire paragon path powers.
First - I've had to use a feat bonus - poking around a bit, it seems like there's no intended way to apply an untyped bonus? If anybody can provide insight into that (even just the valid name for a less common bonus type, since feat is pretty much the most likely to conflict with other stuff) that would be superb.
Second - The code below SEEMS to be working (for base class powers only, obv), but HeroLab reports it weirdly. Instead of reading like 1d8 + 5, power damage reads like 1d8 + 3 (Cha) +2. At level 5+, the damage breakdown line appears, and reads like Damage breakdown: +6 = Ability (+4), Hidden Might (+2).
The value IS right, but it's not being totalled up with the rest of the damage, which I thought it should be? It's not great what I'm used to seeing. I assume this means there's something wrong with my code, so if anybody can glance at it and tell me if there's something clearly wrong, I'd be very grateful.
Thanks!
~work out what our damage bonus should be
var bonus as number
if (hero.tagvalue[Level.?] >= 25) then
bonus = (#attrbonus[attrCha] + 6)
elseif (hero.tagvalue[Level.?] >= 15) then
bonus = (#attrbonus[attrCha] + 4)
elseif (hero.tagvalue[Level.?] >= 5) then
bonus = (#attrbonus[attrCha] + 2)
else
bonus = #attrbonus[attrCha]
endif
~Add bonus to class powers
foreach pick in hero from Power where "PowerClass.clsVampire"
perform eachpick.field[pwDamFeat].modify[+,bonus,""]
nexteach