This commit is contained in:
aozhiwei 2023-04-02 20:44:22 +08:00
parent 2d5b69e4f0
commit 424752982e
20 changed files with 20 additions and 25 deletions

View File

@ -5,7 +5,7 @@
#include "app.h"
#include "android_agent.h"
#include "movement.h"
#include "battledatacontext.h"
#include "netdata.h"
#include "f8/btmgr.h"

View File

@ -12,7 +12,7 @@
#include "human.h"
#include "team.h"
#include "collision.h"
#include "battledatacontext.h"
#include "netdata.h"
#include "hero.h"
#include "obstacle.h"

View File

@ -18,7 +18,7 @@
#include "pbutils.h"
#include "trigger.h"
#include "ability.h"
#include "battledatacontext.h"
#include "netdata.h"
#include "buff.h"
#include "stats.h"
#include "hero.h"

View File

@ -20,7 +20,7 @@
#include "movement.h"
#include "trigger.h"
#include "ability.h"
#include "battledatacontext.h"
#include "netdata.h"
#include "buff.h"
#include "mapinstance.h"
#include "collision.h"

View File

@ -2,7 +2,7 @@
#include "gungrasp.h"
#include "creature.h"
#include "battledatacontext.h"
#include "netdata.h"
#include "trigger.h"
#include "room.h"
#include "effect.h"

View File

@ -15,7 +15,7 @@
#include "app.h"
#include "pbutils.h"
#include "trigger.h"
#include "battledatacontext.h"
#include "netdata.h"
#include "stats.h"
#include "hero_agent.h"
#include "movement.h"

View File

@ -34,7 +34,7 @@
#include "httpproxy.h"
#include "skillhelper.h"
#include "shot.h"
#include "battledatacontext.h"
#include "netdata.h"
#include "mapinstance.h"
#include "movement.h"
#include "pbutils.h"

View File

@ -2,7 +2,7 @@
#include "lispenv.h"
#include "buff.h"
#include "battledatacontext.h"
#include "netdata.h"
#include "creature.h"
#include "glmhelper.h"
#include "room.h"

View File

@ -2,7 +2,7 @@
#include <f8/timer.h>
#include "battledatacontext.h"
#include "netdata.h"
namespace cs
{

View File

@ -1,6 +1,6 @@
#pragma once
#include "battledatacontext.h"
#include "netdata.h"
#include "matchteam.h"

View File

@ -2,7 +2,7 @@
#include <math.h>
#include "battledatacontext.h"
#include "netdata.h"
#include "human.h"
#include "creature.h"

View File

@ -14,7 +14,7 @@
#include "explosion.h"
#include "entityfactory.h"
#include "pbutils.h"
#include "battledatacontext.h"
#include "netdata.h"
#include "mt/Equip.h"
#include "mt/MapThing.h"
@ -211,12 +211,7 @@ void Obstacle::OnExplosionHit(Explosion* e)
float dmg = e->GetDmg();
float def = 0;
// 999
#if 1
float finaly_dmg = dmg;
#else
float finaly_dmg = dmg * (1 - def/MetaMgr::Instance()->K);
#endif
SetHealth(e->GetRoom(), std::max(0.0f, GetHealth(e->GetRoom()) - finaly_dmg));
if (GetHealth(e->GetRoom()) <= 0.01f) {
Die(e->GetRoom());

View File

@ -6,7 +6,7 @@
#include <f8/protoutils.h>
#include <f8/timer.h>
#include "battledatacontext.h"
#include "netdata.h"
namespace cs
{
class CMJoin;

View File

@ -15,7 +15,7 @@
#include "incubator.h"
#include "skillhelper.h"
#include "ability.h"
#include "battledatacontext.h"
#include "netdata.h"
#include "collision.h"
#include "mt/MapThing.h"

View File

@ -12,7 +12,7 @@
#include "buff.h"
#include "debugcmd.h"
#include "ability.h"
#include "battledatacontext.h"
#include "netdata.h"
#include "mt/Param.h"
#include "mt/Hero.h"

View File

@ -15,7 +15,7 @@
#include "collision.h"
#include "pbutils.h"
#include "ability.h"
#include "battledatacontext.h"
#include "netdata.h"
#include "collision.h"
#include "shot.h"
#include "movement.h"

View File

@ -10,7 +10,7 @@
#include "room.h"
#include "roomobstacle.h"
#include "ability.h"
#include "battledatacontext.h"
#include "netdata.h"
#include "mt/Buff.h"
#include "mt/Skill.h"

View File

@ -3,7 +3,7 @@
#include "stats.h"
#include "human.h"
#include "room.h"
#include "battledatacontext.h"
#include "netdata.h"
static double TopXFunc (Human* sender,
std::function<int (Human*, Human*)> cmpFunc,

View File

@ -7,7 +7,7 @@
#include "room.h"
#include "app.h"
#include "bornpoint.h"
#include "battledatacontext.h"
#include "netdata.h"
#include "stats.h"
#include "jsondatamgr.h"
#include "httpproxy.h"

View File

@ -2,7 +2,7 @@
#include "weapon.h"
#include "creature.h"
#include "battledatacontext.h"
#include "netdata.h"
#include "pbutils.h"
#include "human.h"