This commit is contained in:
aozhiwei 2022-11-16 11:08:54 +08:00
parent bad3fb7d24
commit f4a36094e5

View File

@ -11,6 +11,7 @@
#include "bullet.h"
#include "app.h"
#include "room.h"
#include "explosion.h"
#include "attrhelper.h"
@ -548,7 +549,7 @@ float BattleDataContext::CalcDmg(Obstacle* target, IBullet* bullet)
float BattleDataContext::CalcDmg(Explosion* e)
{
float finaly_dmg = (1 - GetDef() / 1000) / 2 * 100;
float finaly_dmg = e->GetDmg();
#ifdef DEBUG
if (owner_.Get()->IsPlayer()) {
std::string data = a8::Format