Character Class
このクラスでは、キャラクターの基本的なデータ、および重要度を取得・作成します。
Constructors
getCharBase
getCharWeight
setCharWeight
setCharWeight
setCharWeight(characterName, weightData)
Params
-
characterName: string
キャラクターの名前 -
weightData: charDataBase
重要度データ
Properties
const weightData = {
name: "オリジナルデータ",
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,
},
};
これは重要度データの形です。名前をつけることで、あとから名前で検索できます。