Floor and cieling have been added to all 3 of the major bots, so division is now possible
This commit is contained in:
@@ -3,7 +3,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group 'me.trouper'
|
group 'me.trouper'
|
||||||
version '0.0.5'
|
version '0.0.6'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|||||||
7
src/main/java/me/trouper/Functions/Decreasers.java
Normal file
7
src/main/java/me/trouper/Functions/Decreasers.java
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
package me.trouper.Functions;
|
||||||
|
|
||||||
|
public class Decreasers {
|
||||||
|
public static String divide() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -38,10 +38,12 @@ public class Obf {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String comp = Complexers.complex(ri,Countroll.deep);
|
String comp = Complexers.complex(ri,Countroll.deep);
|
||||||
|
String rounder = rand.nextBoolean() ? "floor(" : "ceil(";
|
||||||
// Case for if its below
|
// Case for if its below
|
||||||
if (current < target) {
|
if (current < target) {
|
||||||
Countroll.addCount++;
|
Countroll.addCount++;
|
||||||
expression.append("<&b>+<&r><&e>").append(comp).append("<&r>");
|
expression.append("<&b>+<&r><&e>").append(comp).append("<&r>");
|
||||||
|
//expression.insert(0,"<&b>+<&r><&e>").insert(0,comp);
|
||||||
if (target - current > 128) {
|
if (target - current > 128) {
|
||||||
expression.append("<&b>*<&r><&e>").append(Increasers.increase(current,target,ri,Countroll.deep)).append("<&r>");
|
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
|
// Case for if its above
|
||||||
if (current > target) {
|
if (current > target) {
|
||||||
Countroll.subCount++;
|
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) {
|
if (current - target > 128) {
|
||||||
expression.append("<&b>-<&r><&e>").append(Increasers.increase(target,current,ri,Countroll.deep)).append("<&r>");
|
expression.append("<&b>-<&r><&e>").append(Increasers.increase(target,current,ri,Countroll.deep)).append("<&r>");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user