Elise39u / LaravelAvontuur

A remade of my kilk game in larvael
0 stars 0 forks source link

Crashing system IMPORTANT #16

Open Elise39u opened 5 years ago

Elise39u commented 5 years ago

When a player enters combat with a monster there is a chance the combat never ends

The combat system follows this conditions

  1. If the Attacker['attack'] > (Is bigger than) Defender['defence'] Then Do Attacker['attack'] - Defender['defence'] = Damge
  2. If the Attacker['attack'] < (Is less than) Defender['defence'] Then Attack = 15 This is needed to prevent the system going into endless loop

Now is there one condition discoverd where the system is going into endless loop And that is if the player Attack Is equal to Defence of the monster and vise versa

This results in Both the Attack from player and the monster becomes 0 causing the loop never too end and resulting in the same issue as by 2. This case never happend before but just came to mind

Hereby i warn All user to double check defence and attack stats before attacking a monster!!!!!!!

If this occured than Mail me the following information to JNLHelper@outlook.com A. Wich Monster it occuerd on B. Your Attack and Defence Stats at that point C. Same goes for the monster

B Is very important for me because there are serveal different factor that has a influnce on the attack. So i want it as it stood in front of your screen

EXAMPLE: A Monster: Scorpion B: Attack 500 Defence 1000: C Attack 1000 Defence 500

Elise39u commented 5 years ago

Think its been soveld by chanig less than condition in too less than or eq too BUt keep a monitior on it just in case