MarcTowler / ItsLit-RPG-Tracker

Issue tracker for all parts of the ItsLit RPG
0 stars 0 forks source link

Speed and Dex in fights #21

Closed MarcTowler closed 4 years ago

MarcTowler commented 4 years ago

Need to look at if either player or npc speed is double its oppoent, it can attack twice before the other and dex needs to br brought in for misses in fights

MarcTowler commented 4 years ago

For speed, I might introduce at the beginning of the for loop an IF IF(playSpd - monSpd > 0) but instead of those vars, we would have two temp ones that looks at which of the two is bigger and do it that way so that until playSpd - monSpd <= 0 the attack is one sided.

For Dex, 2 new vars introduced which is playAcc and monAcc for accuracy which is an RNG number, IF dex > acc then miss