Basic Dodging Enemy Creation #12

Merged
MaximilienBB merged 5 commits from feature/DodgingEnemy into main 2025-07-27 20:30:08 +00:00
Owner
No description provided.
MaximilienBB added 4 commits 2025-07-20 19:35:41 +00:00
Implémenté la mécanique pour que l'ennemi fantôme puisse esquiver les projectiles. Cette implémentation devra être testé.
Added a list of traits to the enemies that the game will use to determine certain actions.

- The trait to have a 25% chance to dodge projectiles has been implemented.
Re-added the "GhostOpponent" class to determine if the enemy is capable of dodging projectiles.
Removed the "OpponentTrait" Class, since it is no longer used.
Ader_Alisma approved these changes 2025-07-22 00:23:40 +00:00
Ader_Alisma left a comment
Owner

Un mini fix sinon c'est magnifique.

Un mini fix sinon c'est magnifique.
@ -0,0 +8,4 @@
public bool dodgedProjectile()
{
System.Random random = new System.Random();
if(random.Next(0, 99) > 25) return false;
Owner

Pourrais mettre la valeur du % pour dodge (le 25) en SerializedField

Pourrais mettre la valeur du % pour dodge (le 25) en SerializedField
MaximilienBB marked this conversation as resolved
MaximilienBB added 1 commit 2025-07-22 17:53:44 +00:00
Serializé la valeur "DodgePercent" qui détermine la probabilité qu'un ennemie fantôme a d'éviter un projectile.
MaximilienBB merged commit 4cb859c4a5 into main 2025-07-27 20:30:08 +00:00
MaximilienBB deleted branch feature/DodgingEnemy 2025-07-27 20:30:08 +00:00
Sign in to join this conversation.
No Reviewers
No Label
No Milestone
No project
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Conjure/gather-and-defend#12
No description provided.