Character Class
This class retrieves character data and weight data.
Constructors
getCharBase
getCharWeight
setCharWeight
setCharWeight
setCharWeight(characterName, weightData)
Params
-
characterName: string
Character Name -
weightData: charDataBase
Character wight data
Properties
const weightData = {
name: "OriginalData",
main: {
1: {
HPDelta: 1,
},
2: {
AttackDelta: 1,
},
3: {
HPAddedRatio: 0.1,
AttackAddedRatio: 0.1,
DefenceAddedRatio: 1,
CriticalChanceBase: 0.1,
CriticalDamageBase: 0.1,
HealRatioBase: 0,
StatusProbabilityBase: 0.1,
},
4: {
HPAddedRatio: 0.1,
AttackAddedRatio: 0.1,
DefenceAddedRatio: 1,
SpeedDelta: 1,
},
5: {
HPAddedRatio: 0.1,
AttackAddedRatio: 0.1,
DefenceAddedRatio: 1,
PhysicalAddedRatio: 0,
FireAddedRatio: 0,
IceAddedRatio: 0.1,
ThunderAddedRatio: 0,
WindAddedRatio: 0,
QuantumAddedRatio: 0,
ImaginaryAddedRatio: 0,
},
6: {
BreakDamageAddedRatioBase: 0.1,
SPRatioBase: 0.8,
HPAddedRatio: 0.1,
AttackAddedRatio: 0.1,
DefenceAddedRatio: 1,
},
},
weight: {
HPDelta: 0,
AttackDelta: 0,
DefenceDelta: 0.3,
HPAddedRatio: 0.1,
AttackAddedRatio: 0.1,
DefenceAddedRatio: 1,
SpeedDelta: 1,
CriticalChanceBase: 0.1,
CriticalDamageBase: 0.1,
StatusProbabilityBase: 0.8,
StatusResistanceBase: 0.8,
BreakDamageAddedRatioBase: 0.1,
},
};
There is base weighting data. You can assign a name to each dataset, which makes it searchable later.