diff --git a/Adventures in Lestoria/BreakingPillar.cpp b/Adventures in Lestoria/BreakingPillar.cpp index 11a5370c..84c7275d 100644 --- a/Adventures in Lestoria/BreakingPillar.cpp +++ b/Adventures in Lestoria/BreakingPillar.cpp @@ -36,9 +36,9 @@ All rights reserved. */ #pragma endregion -#include "Monster.h" #include "MonsterStrategyHelpers.h" -#include "config.h" +#include "util.h" +#include "AdventuresInLestoria.h" using A=Attribute; @@ -50,9 +50,14 @@ void Monster::STRATEGY::BREAKING_PILLAR(Monster&m,float fElapsedTime,std::string m.animation.ModifyDisplaySprite(m.internal_animState,ConfigString("Break Phase 1 Animation Name")); }else m.animation.ModifyDisplaySprite(m.internal_animState,ConfigString("Break Phase 2 Animation Name")); - m.SetStrategyDeathFunction([](GameEvent&deathEvent,Monster&m,const std::string&monsterName){ + m.SetStrategyDeathFunction([&](GameEvent&deathEvent,Monster&m,const std::string&strategy){ m.lifetime=0.01f; m.B(A::MARKED_DEAD)=true; + const float bulletAngRandomOffset{util::random(PI/2)}; + for(int i=0;ievery Pillar that breaks Casts a ring of projectiles on death (15 dmg) -The golem attacks similar like bear boss but with half the radius on the attack. (35 dmg) +>The golem attacks similar like bear boss but with half the radius on the attack. (35 dmg) -after every attack there is a 25% chance The Stone golem targets the Player. the targeting gets Indicated around the player. +>after every attack there is a 25% chance The Stone golem targets the Player. the targeting gets Indicated around the player. -after 2.5 seconds the golems throws a giant rock with 250 radius on the players position. Damaging the player and destroying Pillars hit. (55 dmg) +>after 2.5 seconds the golems throws a giant rock with 250 radius on the players position. Damaging the player and destroying Pillars hit. (55 dmg) Stone Throw cant overlap with shockwave. when a 10% mark is reached while a rock is targeting the player, Shockwave cast starts after the rock was thrown. diff --git a/Adventures in Lestoria/Stone_Elemental.cpp b/Adventures in Lestoria/Stone_Elemental.cpp index 5f84549d..a18ea321 100644 --- a/Adventures in Lestoria/Stone_Elemental.cpp +++ b/Adventures in Lestoria/Stone_Elemental.cpp @@ -202,7 +202,7 @@ void Monster::STRATEGY::STONE_ELEMENTAL(Monster&m,float fElapsedTime,std::string const float bulletAngRandomOffset{util::random(PI/2)}; for(int i=0;i