Plugin Name: YEP_X_ClassBaseParam
Bug Explanation: Using the Lunatic Mode Notetag <Custom maxhp Formula> doesn't change anything.
Error Report: None
Exact Steps:
1. Start Game
2. Open the Main Menu
3. Go to Class
4. Choose any Actor
5. In the Class Change Core Plugin Screen, choose Class
6. Select the Warrior class
7. ATK is different from 26, but hp isn't different from 450
In Notetags of any given class (warrior, in the example):
<Custom maxhp Formula>
if (this.name() === 'Harold') {
value = 30 * level + 500;
} else {
value = 25 * level + 475;
}
</Custom maxhp Formula>
Neither Harold nor any other actor get any different hp than the standard ones
Sample Project: Bug Demo.zip
The sample project uses your class change core plugin to better represent the issue (the warrior class is used with given notetag); in addition, the warrior class also has a <Custom atk Formula> to demonstrate that other parameters ARE changed accordingly.
After some tests myself, I think line 152 of the YEP_X_ClassBaseParam.js ('obj.baseParamFormula[paramId] = '';') is responsible for this behavior as it overrides the baseParamFormula of paramId 0, which is hp.
Bug Explanation: Using the Lunatic Mode Notetag <Custom maxhp Formula> doesn't change anything.
Error Report: None
Exact Steps:
1. Start Game
2. Open the Main Menu
3. Go to Class
4. Choose any Actor
5. In the Class Change Core Plugin Screen, choose Class
6. Select the Warrior class
7. ATK is different from 26, but hp isn't different from 450
In Notetags of any given class (warrior, in the example):
<Custom maxhp Formula>
if (this.name() === 'Harold') {
value = 30 * level + 500;
} else {
value = 25 * level + 475;
}
</Custom maxhp Formula>
Neither Harold nor any other actor get any different hp than the standard ones
Sample Project: Bug Demo.zip
The sample project uses your class change core plugin to better represent the issue (the warrior class is used with given notetag); in addition, the warrior class also has a <Custom atk Formula> to demonstrate that other parameters ARE changed accordingly.
After some tests myself, I think line 152 of the YEP_X_ClassBaseParam.js ('obj.baseParamFormula[paramId] = '';') is responsible for this behavior as it overrides the baseParamFormula of paramId 0, which is hp.