Quads+Horizons damage shields / RTS AI toggle for Serpulo

This commit is contained in:
Anuken
2024-09-15 17:20:34 -04:00
parent 2afe0977f3
commit 9911e602a0
9 changed files with 47 additions and 15 deletions

View File

@@ -343,7 +343,7 @@ public class RtsAI{
//other can never be destroyed | other destroys self instantly
if(Float.isInfinite(timeDestroyOther) || Mathf.zero(timeDestroySelf)) return 0f;
//self can never be destroyed | self destroys other instantly
if(Float.isInfinite(timeDestroySelf) || Mathf.zero(timeDestroyOther)) return 1f;
if(Float.isInfinite(timeDestroySelf) || Mathf.zero(timeDestroyOther)) return 100000f;
//examples:
// self 10 sec / other 10 sec -> can destroy target with 100 % losses -> returns 1