bratch9
March 4th, 2022, 23:20
Aspect of the Bear, ruleset support..
Due to how this is coded, the 'update' does not happen correct.
51809
The above source code shows that the 'strength' update code is only triggered on 'traitlist' updates. Which is fine for 'powerful build'. But the addition of the 'aspect of the bear' been in the features list needs extra addHander/removehandler calls.
See the attached...
Create character, GO LOOK AT THE INVENTORY page, so that it initialises the 'maximum' to 150
51810
Now add 'Aspect of the Bear' to the 'features' list. ( Case does not matter. )
51811
Now go to the inventory page, the maximum is not updated due to the missing addHandler calls.
51812
To correct this you need to 'adjust the strength' to have it re-calculate.. then you will get the 300 maximum as expected.
-pete
( NOTE.. if you just create a character, add the 'aspect of the bear' and then go to inventory... this will be correct as it only initialises the maximum 'onInit' of the inventory page... so this will show correct.. But I'm yet to get to level 6 without needed to use the inventory page !! )
Due to how this is coded, the 'update' does not happen correct.
51809
The above source code shows that the 'strength' update code is only triggered on 'traitlist' updates. Which is fine for 'powerful build'. But the addition of the 'aspect of the bear' been in the features list needs extra addHander/removehandler calls.
See the attached...
Create character, GO LOOK AT THE INVENTORY page, so that it initialises the 'maximum' to 150
51810
Now add 'Aspect of the Bear' to the 'features' list. ( Case does not matter. )
51811
Now go to the inventory page, the maximum is not updated due to the missing addHandler calls.
51812
To correct this you need to 'adjust the strength' to have it re-calculate.. then you will get the 300 maximum as expected.
-pete
( NOTE.. if you just create a character, add the 'aspect of the bear' and then go to inventory... this will be correct as it only initialises the maximum 'onInit' of the inventory page... so this will show correct.. But I'm yet to get to level 6 without needed to use the inventory page !! )