rsc: please read the commit message for my neverending descent into madness

how do i stop making castles
every time i go to the beach i make a castle
every time i open blender i model castles
every time i play chess i castle
i just cant stop making castles dude
This commit is contained in:
ThatGamerBlue
2021-02-26 00:33:45 +00:00
parent 62df7e0ff1
commit 563587e6b0
346 changed files with 84175 additions and 82557 deletions

View File

@@ -6,103 +6,106 @@ import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("ds")
@Implements("SoundEnvelope")
public class SoundEnvelope {
@ObfuscatedName("n")
@Export("segments")
int segments = 2;
@ObfuscatedName("v")
@Export("durations")
int[] durations = new int[2];
@ObfuscatedName("d")
@Export("phases")
int[] phases = new int[2];
@ObfuscatedName("c")
@Export("start")
int start;
@ObfuscatedName("y")
@Export("max")
int max;
@ObfuscatedName("h")
@Export("end")
int end;
@ObfuscatedName("z")
@Export("form")
int form;
@ObfuscatedName("e")
@Export("ticks")
int ticks;
@ObfuscatedName("q")
@Export("phaseIndex")
int phaseIndex;
@ObfuscatedName("l")
@Export("step")
int step;
@ObfuscatedName("s")
@Export("amplitude")
int amplitude;
@ObfuscatedName("n")
@Export("segments")
int segments;
@ObfuscatedName("v")
@Export("durations")
int[] durations;
@ObfuscatedName("d")
@Export("phases")
int[] phases;
@ObfuscatedName("c")
@Export("start")
int start;
@ObfuscatedName("y")
@Export("max")
int max;
@ObfuscatedName("h")
@Export("end")
int end;
@ObfuscatedName("z")
@Export("form")
int form;
@ObfuscatedName("e")
@Export("ticks")
int ticks;
@ObfuscatedName("q")
@Export("phaseIndex")
int phaseIndex;
@ObfuscatedName("l")
@Export("step")
int step;
@ObfuscatedName("s")
@Export("amplitude")
int amplitude;
SoundEnvelope() {
this.durations[0] = 0;
this.durations[1] = 65535;
this.phases[0] = 0;
this.phases[1] = 65535;
}
SoundEnvelope() {
this.segments = 2; // L: 21
this.durations = new int[2]; // L: 22
this.phases = new int[2]; // L: 23
this.durations[0] = 0; // L: 24
this.durations[1] = 65535; // L: 25
this.phases[0] = 0; // L: 26
this.phases[1] = 65535; // L: 27
} // L: 28
@ObfuscatedName("n")
@ObfuscatedSignature(
descriptor = "(Lkx;)V"
)
@Export("decode")
final void decode(Buffer var1) {
this.form = var1.readUnsignedByte();
this.start = var1.readInt();
this.end = var1.readInt();
this.decodeSegments(var1);
}
@ObfuscatedName("n")
@ObfuscatedSignature(
descriptor = "(Lkx;)V"
)
@Export("decode")
final void decode(Buffer var1) {
this.form = var1.readUnsignedByte(); // L: 31
this.start = var1.readInt(); // L: 32
this.end = var1.readInt(); // L: 33
this.decodeSegments(var1); // L: 34
} // L: 35
@ObfuscatedName("v")
@ObfuscatedSignature(
descriptor = "(Lkx;)V"
)
@Export("decodeSegments")
final void decodeSegments(Buffer var1) {
this.segments = var1.readUnsignedByte();
this.durations = new int[this.segments];
this.phases = new int[this.segments];
@ObfuscatedName("v")
@ObfuscatedSignature(
descriptor = "(Lkx;)V"
)
@Export("decodeSegments")
final void decodeSegments(Buffer var1) {
this.segments = var1.readUnsignedByte(); // L: 38
this.durations = new int[this.segments]; // L: 39
this.phases = new int[this.segments]; // L: 40
for(int var2 = 0; var2 < this.segments; ++var2) {
this.durations[var2] = var1.readUnsignedShort();
this.phases[var2] = var1.readUnsignedShort();
}
for (int var2 = 0; var2 < this.segments; ++var2) { // L: 41
this.durations[var2] = var1.readUnsignedShort(); // L: 42
this.phases[var2] = var1.readUnsignedShort(); // L: 43
}
}
} // L: 45
@ObfuscatedName("d")
@Export("reset")
final void reset() {
this.ticks = 0;
this.phaseIndex = 0;
this.step = 0;
this.amplitude = 0;
this.max = 0;
}
@ObfuscatedName("d")
@Export("reset")
final void reset() {
this.ticks = 0; // L: 48
this.phaseIndex = 0; // L: 49
this.step = 0; // L: 50
this.amplitude = 0; // L: 51
this.max = 0; // L: 52
} // L: 53
@ObfuscatedName("c")
@Export("doStep")
final int doStep(int var1) {
if (this.max >= this.ticks) {
this.amplitude = this.phases[this.phaseIndex++] << 15;
if (this.phaseIndex >= this.segments) {
this.phaseIndex = this.segments - 1;
}
@ObfuscatedName("c")
@Export("doStep")
final int doStep(int var1) {
if (this.max >= this.ticks) { // L: 56
this.amplitude = this.phases[this.phaseIndex++] << 15; // L: 57
if (this.phaseIndex >= this.segments) { // L: 58
this.phaseIndex = this.segments - 1;
}
this.ticks = (int)((double)this.durations[this.phaseIndex] / 65536.0D * (double)var1);
if (this.ticks > this.max) {
this.step = ((this.phases[this.phaseIndex] << 15) - this.amplitude) / (this.ticks - this.max);
}
}
this.ticks = (int)((double)this.durations[this.phaseIndex] / 65536.0D * (double)var1); // L: 59
if (this.ticks > this.max) { // L: 60
this.step = ((this.phases[this.phaseIndex] << 15) - this.amplitude) / (this.ticks - this.max);
}
}
this.amplitude += this.step;
++this.max;
return this.amplitude - this.step >> 15;
}
this.amplitude += this.step; // L: 62
++this.max; // L: 63
return this.amplitude - this.step >> 15; // L: 64
}
}