|
|
@ -11,6 +11,8 @@ |
|
|
|
#include "config.h" |
|
|
|
#include "config.h" |
|
|
|
#include "Key.h" |
|
|
|
#include "Key.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#undef GetClassName |
|
|
|
|
|
|
|
|
|
|
|
struct CastInfo{ |
|
|
|
struct CastInfo{ |
|
|
|
std::string name; |
|
|
|
std::string name; |
|
|
|
float castTimer; |
|
|
|
float castTimer; |
|
|
@ -29,9 +31,11 @@ struct Player{ |
|
|
|
friend struct Witch; |
|
|
|
friend struct Witch; |
|
|
|
friend class State_GameRun; |
|
|
|
friend class State_GameRun; |
|
|
|
private: |
|
|
|
private: |
|
|
|
int hp="Player.BaseHealth"_I,maxhp=hp; |
|
|
|
int hp="Warrior.BaseHealth"_I,maxhp=hp; |
|
|
|
int mana="Player.BaseMana"_I,maxmana=mana; |
|
|
|
int mana="Player.BaseMana"_I,maxmana=mana; |
|
|
|
int atk="Player.BaseAtk"_I; |
|
|
|
int atk="Warrior.BaseAtk"_I; |
|
|
|
|
|
|
|
float hpGrowthRate="Warrior.HealthGrowthRate"_F; |
|
|
|
|
|
|
|
float atkGrowthRate="Warrior.AtkGrowthRate"_F; |
|
|
|
vf2d pos; |
|
|
|
vf2d pos; |
|
|
|
float z=0; |
|
|
|
float z=0; |
|
|
|
float moveSpd=1.0f; |
|
|
|
float moveSpd=1.0f; |
|
|
@ -404,4 +408,4 @@ struct Witch:Player{ |
|
|
|
{#class".Ability 3.Precast Time"_F,#class".Ability 3.Casting Range"_I/100.f*24,#class".Ability 3.Casting Size"_I/100.f*24}, \
|
|
|
|
{#class".Ability 3.Precast Time"_F,#class".Ability 3.Casting Range"_I/100.f*24,#class".Ability 3.Casting Size"_I/100.f*24}, \
|
|
|
|
bool(#class".Ability 3.CancelCast"_I) \
|
|
|
|
bool(#class".Ability 3.CancelCast"_I) \
|
|
|
|
}; \
|
|
|
|
}; \
|
|
|
|
class::ability4; |
|
|
|
class::ability4;
|