Floor and cieling have been added to all 3 of the major bots, so division is now possible

This commit is contained in:
TheTrouper
2024-04-12 18:36:39 -05:00
parent 922c126f96
commit e6cae61b7d
3 changed files with 11 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ plugins {
}
group 'me.trouper'
version '0.0.5'
version '0.0.6'
repositories {
mavenCentral()

View File

@@ -0,0 +1,7 @@
package me.trouper.Functions;
public class Decreasers {
public static String divide() {
return null;
}
}

View File

@@ -38,10 +38,12 @@ public class Obf {
}
String comp = Complexers.complex(ri,Countroll.deep);
String rounder = rand.nextBoolean() ? "floor(" : "ceil(";
// Case for if its below
if (current < target) {
Countroll.addCount++;
expression.append("<&b>+<&r><&e>").append(comp).append("<&r>");
//expression.insert(0,"<&b>+<&r><&e>").insert(0,comp);
if (target - current > 128) {
expression.append("<&b>*<&r><&e>").append(Increasers.increase(current,target,ri,Countroll.deep)).append("<&r>");
}
@@ -50,7 +52,7 @@ public class Obf {
// Case for if its above
if (current > target) {
Countroll.subCount++;
expression.append("<&b>-<&r><&e>").append(comp).append("<&r>");
expression.insert(0,rounder).append(expression).append("<&b>/<&r><&e>").append(comp).append("<&r>)");
if (current - target > 128) {
expression.append("<&b>-<&r><&e>").append(Increasers.increase(target,current,ri,Countroll.deep)).append("<&r>");
}