Implemented reading spawn zones on maps. Monsters now spawn according to spawn zones.

This commit is contained in:
2023-07-07 21:35:44 -05:00
parent 9a2af45245
commit 57d7f3344b
6 changed files with 141 additions and 81 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ bool Warrior::AutoAttack(){
bool Warrior::Ability1(){
ACCESS_PLAYER
game->AddEffect(Effect(p.pos,0.1,AnimationState::BATTLECRY_EFFECT,1,0.3));
game->AddEffect(Effect(p.pos,0.1,AnimationState::BATTLECRY_EFFECT,p.upperLevel,1,0.3));
p.AddBuff(BuffType::ATTACK_UP,10,0.1);
p.AddBuff(BuffType::DAMAGE_REDUCTION,10,0.1);
for(Monster&m:MONSTER_LIST){