1
This commit is contained in:
parent
dad8bfd7fc
commit
4a5db23797
@ -787,7 +787,24 @@ float BattleDataContext::CalcDmg(Creature* target, IBullet* bullet)
|
|||||||
#ifdef MYDEBUG
|
#ifdef MYDEBUG
|
||||||
std::vector<std::string> dbg_strings;
|
std::vector<std::string> dbg_strings;
|
||||||
if (owner_.Get()->IsPlayer()) {
|
if (owner_.Get()->IsPlayer()) {
|
||||||
|
{
|
||||||
|
std::vector<std::string> tmp_strings;
|
||||||
|
tmp_strings = owner_.Get()->GetAbility()->GMShowAttrs();
|
||||||
|
tmp_strings.push_back(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
|
||||||
|
for (auto& str : tmp_strings) {
|
||||||
|
owner_.Get()->SendDebugMsg("数值: self " + str);
|
||||||
|
}
|
||||||
|
tmp_strings.push_back(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
|
||||||
|
}
|
||||||
|
{
|
||||||
|
std::vector<std::string> tmp_strings;
|
||||||
|
tmp_strings = target->GetAbility()->GMShowAttrs();
|
||||||
|
tmp_strings.push_back("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
|
||||||
|
for (auto& str : tmp_strings) {
|
||||||
|
owner_.Get()->SendDebugMsg("数值: target " + str);
|
||||||
|
}
|
||||||
|
tmp_strings.push_back("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -829,7 +846,7 @@ float BattleDataContext::CalcDmg(Creature* target, IBullet* bullet)
|
|||||||
if (owner_.Get()->IsPlayer()) {
|
if (owner_.Get()->IsPlayer()) {
|
||||||
dbg_strings.push_back(a8::Format
|
dbg_strings.push_back(a8::Format
|
||||||
("finaly_dmg:%f vEcb:%f vEd:%f X:%f vCritBon:%f E:%f vBlock:%f vAttack:%f vBullet:%f BDM:%f "
|
("finaly_dmg:%f vEcb:%f vEd:%f X:%f vCritBon:%f E:%f vBlock:%f vAttack:%f vBullet:%f BDM:%f "
|
||||||
"vNormalDamageDealtRateIn:%f vNormalDamageTakenRateIn:%f vDmg:%f DDR:%f DTR:%f",
|
"vNormalDamageDealtRateIn:%f vNormalDamageTakenRateIn:%f vDmg:%f DDR:%f DTR:%f self.id:%d target.id:%f",
|
||||||
{
|
{
|
||||||
finaly_dmg,
|
finaly_dmg,
|
||||||
vEbc,
|
vEbc,
|
||||||
@ -845,7 +862,9 @@ float BattleDataContext::CalcDmg(Creature* target, IBullet* bullet)
|
|||||||
vNormalDamageTakenRateIn,
|
vNormalDamageTakenRateIn,
|
||||||
vDmg,
|
vDmg,
|
||||||
DDR,
|
DDR,
|
||||||
DTR
|
DTR,
|
||||||
|
owner_.Get()->GetUniId(),
|
||||||
|
target->GetUniId()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user