Compare commits

...

11 Commits

Author SHA1 Message Date
ThatGamerBlue
915fb55c0a Merge pull request #3228 from open-osrs/revert-3226-revert-3224-delete-client
Some checks failed
OpenOSRS - CI (push) / Build (push) Has been cancelled
OpenOSRS - CI (push) / Test (push) Has been cancelled
OpenOSRS - CI (push) / Checkstyle main (push) Has been cancelled
OpenOSRS - CI (push) / Checkstyle test (push) Has been cancelled
OpenOSRS - Stale issues and PRs / stale (push) Has been cancelled
OpenOSRS - Scraper / scrape-npcs (push) Has been cancelled
OpenOSRS - Gradle Dependencies / update-wrapper (push) Has been cancelled
client: snake is back on the menu boys
2022-06-28 23:54:31 +01:00
ThatGamerBlue
fe0aea3505 or that one 2022-06-28 23:52:29 +01:00
ThatGamerBlue
47be8143de dont need that one 2022-06-28 23:52:00 +01:00
ThatGamerBlue
aa1f0a2fbc Revert "revert: "thistitlemakesthebothappy: replace the client with something better"" 2022-06-28 23:51:05 +01:00
Owain van Brakel
09b0a5f2d6 Merge remote-tracking branch 'origin/master' 2022-06-27 12:42:24 +02:00
Owain van Brakel
5e37d4765e project(mixins): Fix setCombatInfo 2022-06-27 12:42:12 +02:00
Owain van Brakel
b0fa3e3196 Merge pull request #3227 from open-osrs/oopsie-yet-again 2022-06-23 23:26:25 +02:00
Owain van Brakel
bf1a6c6200 Revert "let's not do this because it doesn't work and i don't care :)"
This reverts commit ffd6ab5317.
2022-06-23 23:21:20 +02:00
Owain van Brakel
f1af3e57e9 project(gradle): Oopsie 2022-06-23 23:20:58 +02:00
ThatGamerBlue
8af6f77e18 Merge pull request #3226 from open-osrs/revert-3224-delete-client
revert: "thistitlemakesthebothappy: replace the client with something better"
2022-06-23 20:56:10 +01:00
ThatGamerBlue
c524cb88a7 Revert "thistitlemakesthebothappy: replace the client with something better" 2022-06-23 20:55:25 +01:00
6 changed files with 18 additions and 26 deletions

View File

@@ -165,7 +165,7 @@ subprojects {
exclude("**/RoomType.java") exclude("**/RoomType.java")
} }
/*withType<Jar> { withType<Jar> {
doLast { doLast {
// sign jar // sign jar
if (System.getProperty("signKeyStore") != null) { if (System.getProperty("signKeyStore") != null) {
@@ -187,7 +187,7 @@ subprojects {
} }
} }
} }
}*/ }
} }
configurations.compileOnly.get().extendsFrom(configurations["annotationProcessor"]) configurations.compileOnly.get().extendsFrom(configurations["annotationProcessor"])

View File

@@ -155,8 +155,6 @@ open class BootstrapTask @Inject constructor(@Input val type: String) : DefaultT
it.file.name.contains("runelite-api") || it.file.name.contains("runelite-api") ||
it.file.name.contains("runelite-jshell")) { it.file.name.contains("runelite-jshell")) {
path = "https://github.com/open-osrs/hosting/raw/master/${type}/${it.file.name}" path = "https://github.com/open-osrs/hosting/raw/master/${type}/${it.file.name}"
} else if (it.file.name.contains("injection-annotations")) {
path = "https://github.com/open-osrs/hosting/raw/master/" + group.replace(".", "/") + "/${name}/$version/${it.file.name}"
} else if (!group.contains("runelite")) { } else if (!group.contains("runelite")) {
path = "https://repo.maven.apache.org/maven2/" + group.replace(".", "/") + "/${name}/$version/${name}-$version" path = "https://repo.maven.apache.org/maven2/" + group.replace(".", "/") + "/${name}/$version/${name}-$version"
if (it.classifier != null && it.classifier != "no_aop") { if (it.classifier != null && it.classifier != "no_aop") {

View File

@@ -92,7 +92,6 @@ dependencies {
implementation(group = "net.runelite.jocl", name = "jocl", version = "1.0") implementation(group = "net.runelite.jocl", name = "jocl", version = "1.0")
runtimeOnly(project(":runescape-api")) runtimeOnly(project(":runescape-api"))
runtimeOnly(project(":injected-client"))
runtimeOnly(group = "net.runelite.pushingpixels", name = "trident", version = "1.5.00") runtimeOnly(group = "net.runelite.pushingpixels", name = "trident", version = "1.5.00")
runtimeOnly(group = "net.runelite.gluegen", name = "gluegen-rt", version = "2.4.0-rc-20220318", classifier = "natives-linux-amd64") runtimeOnly(group = "net.runelite.gluegen", name = "gluegen-rt", version = "2.4.0-rc-20220318", classifier = "natives-linux-amd64")
runtimeOnly(group = "net.runelite.gluegen", name = "gluegen-rt", version = "2.4.0-rc-20220318", classifier = "natives-windows-amd64") runtimeOnly(group = "net.runelite.gluegen", name = "gluegen-rt", version = "2.4.0-rc-20220318", classifier = "natives-windows-amd64")

View File

@@ -75,9 +75,6 @@ public class GameHandler implements KeyListener {
ateApple = true; ateApple = true;
score++; score++;
SnakeGame.currentRefreshInterval = Math.max(50, DEFAULT_REFRESH_INTERVAL - score); SnakeGame.currentRefreshInterval = Math.max(50, DEFAULT_REFRESH_INTERVAL - score);
if (score == 15) {
game.stop();
}
} }
if (!ateApple) { if (!ateApple) {

View File

@@ -180,22 +180,9 @@ public class RuneLite
private static final String BYPASS_ARG = "--IWillNotComplainIfIGetSentToTheGulagByJamflex"; private static final String BYPASS_ARG = "--IWillNotComplainIfIGetSentToTheGulagByJamflex";
public static void main(String[] args) throws Exception public static void main(String[] args) throws Exception {
{
if (!ArrayUtils.contains(args, BYPASS_ARG))
{
JOptionPane.showMessageDialog(null,
String.format("If you want to actually use the client despite the risks add\n%s\nto your launch arguments.\n\nOr score 15 and the client opens anyway.\nI'm not your dad.",
"unknown".equals(RuneLiteProperties.getLauncherVersion()) ? BYPASS_ARG : ("--clientargs=\"" + BYPASS_ARG + "\"")),
"OpenOSRS",
JOptionPane.INFORMATION_MESSAGE);
SnakeGame.main(args); SnakeGame.main(args);
} }
else
{
oldMain(args);
}
}
public static void oldMain(String[] args) throws Exception public static void oldMain(String[] args) throws Exception
{ {

View File

@@ -33,6 +33,7 @@ import net.runelite.api.Actor;
import net.runelite.api.Hitsplat; import net.runelite.api.Hitsplat;
import net.runelite.api.NPC; import net.runelite.api.NPC;
import net.runelite.api.NPCComposition; import net.runelite.api.NPCComposition;
import net.runelite.api.NpcID;
import net.runelite.api.Perspective; import net.runelite.api.Perspective;
import net.runelite.api.Player; import net.runelite.api.Player;
import net.runelite.api.Point; import net.runelite.api.Point;
@@ -68,7 +69,7 @@ public abstract class RSActorMixin implements RSActor
private static RSClient client; private static RSClient client;
@Inject @Inject
private final Set<Integer> combatInfoFilter = ImmutableSet.of(0, 2, 16, 17, 18, 19, 20, 21, 22); private static final Set<Integer> combatInfoFilter = ImmutableSet.of(0, 2, 16, 17, 18, 19, 20, 21, 22);
@Inject @Inject
private boolean dead; private boolean dead;
@@ -195,6 +196,16 @@ public abstract class RSActorMixin implements RSActor
@Inject @Inject
public void animationChanged(int idx) public void animationChanged(int idx)
{ {
if (this instanceof RSNPC)
{
int id = ((RSNPC) this).getId();
if (id == NpcID.CORPOREAL_BEAST && this.getAnimation() == 1676)
{
setDead(true);
}
}
AnimationChanged animationChange = new AnimationChanged(); AnimationChanged animationChange = new AnimationChanged();
animationChange.setActor(this); animationChange.setActor(this);
client.getCallbacks().post(animationChange); client.getCallbacks().post(animationChange);
@@ -273,7 +284,7 @@ public abstract class RSActorMixin implements RSActor
if (healthRatio == 0) if (healthRatio == 0)
{ {
if (!isDead()) if (isDead())
{ {
return; return;
} }
@@ -290,7 +301,7 @@ public abstract class RSActorMixin implements RSActor
} }
else if (healthRatio > 0) else if (healthRatio > 0)
{ {
if (this instanceof RSNPC && ((RSNPC) this).getId() == 319 && isDead()) if (this instanceof RSNPC && ((RSNPC) this).getId() == NpcID.CORPOREAL_BEAST && isDead())
{ {
return; return;
} }