Skip to content

Commit

Permalink
Merge pull request #403 from chsami/development
Browse files Browse the repository at this point in the history
1.5.2
  • Loading branch information
chsami authored Oct 9, 2024
2 parents 49ead1e + 9b61973 commit b0de1d1
Show file tree
Hide file tree
Showing 50 changed files with 1,231 additions and 276 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "1.5.1"
automatic_release_tag: "1.5.2"
prerelease: false
title: "Release 1.5.1"
title: "Release 1.5.2"
files: |
/home/runner/work/microbot/microbot/runelite-client/target/microbot-*.jar
Expand Down
2 changes: 1 addition & 1 deletion cache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<parent>
<groupId>net.runelite</groupId>
<artifactId>runelite-parent</artifactId>
<version>1.10.38-SNAPSHOT</version>
<version>1.10.39-SNAPSHOT</version>
</parent>

<artifactId>cache</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<groupId>net.runelite</groupId>
<artifactId>runelite-parent</artifactId>
<version>1.10.38-SNAPSHOT</version>
<version>1.10.39-SNAPSHOT</version>
<packaging>pom</packaging>

<name>RuneLite</name>
Expand Down
2 changes: 1 addition & 1 deletion runelite-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<parent>
<groupId>net.runelite</groupId>
<artifactId>runelite-parent</artifactId>
<version>1.10.38-SNAPSHOT</version>
<version>1.10.39-SNAPSHOT</version>
</parent>

<artifactId>runelite-api</artifactId>
Expand Down
14 changes: 8 additions & 6 deletions runelite-api/src/main/interfaces/interfaces.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,13 @@ deposit_equipment=46
potion_store=48
incinerator=49
incinerator_confirm=50
equipment_parent=74
equipment_set_bonus=115
settings_button=119
equipment_button=120
popup=122
equipment_stat_bonus=127
potionstore_content=52
equipment_parent=77
equipment_set_bonus=118
settings_button=122
equipment_button=123
popup=125
equipment_stat_bonus=131

[bank_inventory]
id=15
Expand Down Expand Up @@ -626,6 +627,7 @@ container=0

[prayer]
id=541
parent=0

[private_chat]
id=163
Expand Down
5 changes: 5 additions & 0 deletions runelite-api/src/main/java/net/runelite/api/AnimationID.java
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ public final class AnimationID
public static final int DENSE_ESSENCE_CHIPPING = 7201;
public static final int DENSE_ESSENCE_CHISELING = 7202;
public static final int HERBLORE_POTIONMAKING = 363; //used for both herb and secondary
public static final int HERBLORE_MIXOLOGY_CONCENTRATE = 11644;
public static final int HERBLORE_MIXOLOGY_CRYSTALIZE = 11639;
public static final int HERBLORE_MIXOLOGY_HOMOGENIZE = 11634;
public static final int HERBLORE_MIXOLOGY_REFINER = 11604;
public static final int MAGIC_CHARGING_ORBS = 726;
public static final int MAGIC_MAKE_TABLET = 4068;
public static final int MAGIC_TELEPORT_TABLET = 4069;
Expand Down Expand Up @@ -305,6 +309,7 @@ public final class AnimationID
// NPC animations
public static final int TZTOK_JAD_MAGIC_ATTACK = 2656;
public static final int TZTOK_JAD_RANGE_ATTACK = 2652;
public static final int CYCLOPS_ATTACK = 4652;
public static final int HELLHOUND_DEFENCE = 6566;

// Farming
Expand Down
6 changes: 6 additions & 0 deletions runelite-api/src/main/java/net/runelite/api/EnumID.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,10 @@ public final class EnumID

public static final int SPELLBOOKS = 1981;
public static final int SPELLBOOKS_SUB = 5280;

/**
* key: int id
* val: enum potion
*/
public static final int POTIONSTORE_POTIONS = 4826;
}
7 changes: 5 additions & 2 deletions runelite-api/src/main/java/net/runelite/api/NpcID.java
Original file line number Diff line number Diff line change
Expand Up @@ -11604,8 +11604,7 @@ public final class NpcID
public static final int ICE_BLOCK_13790 = 13790;
public static final int FROST_CRAB_13791 = 13791;
public static final int ICE_BLOCK_13792 = 13792;
public static final int BLUE_DRAGON_13793 = 13793;
public static final int BABY_BLUE_DRAGON_13794 = 13794;
public static final int BREWMA = 13793;
public static final int BRUTAL_BLUE_DRAGON_13795 = 13795;
public static final int ICE_GIANT_13796 = 13796;
public static final int ICE_GIANT_13797 = 13797;
Expand Down Expand Up @@ -11839,5 +11838,9 @@ public final class NpcID
public static final int HUBERTE_14045 = 14045;
public static final int MOXI_14046 = 14046;
public static final int GULL_14047 = 14047;
public static final int BLUE_DRAGON_14103 = 14103;
public static final int BLUE_DRAGON_14104 = 14104;
public static final int BABY_BLUE_DRAGON_14105 = 14105;
public static final int BABY_BLUE_DRAGON_14106 = 14106;
/* This file is automatically generated. Do not edit. */
}
4 changes: 4 additions & 0 deletions runelite-api/src/main/java/net/runelite/api/NullObjectID.java
Original file line number Diff line number Diff line change
Expand Up @@ -28811,5 +28811,9 @@ public final class NullObjectID
public static final int NULL_55403 = 55403;
public static final int NULL_55404 = 55404;
public static final int NULL_55405 = 55405;
public static final int NULL_55420 = 55420;
public static final int NULL_55421 = 55421;
public static final int NULL_55422 = 55422;
public static final int NULL_55423 = 55423;
/* This file is automatically generated. Do not edit. */
}
13 changes: 13 additions & 0 deletions runelite-api/src/main/java/net/runelite/api/ObjectID.java
Original file line number Diff line number Diff line change
Expand Up @@ -26582,5 +26582,18 @@ public final class ObjectID
public static final int SHELVES_55407 = 55407;
public static final int SHELVES_55408 = 55408;
public static final int SHELVES_55409 = 55409;
public static final int CAULDRON_55410 = 55410;
public static final int REWARD_CART = 55411;
public static final int REWARD_CART_55412 = 55412;
public static final int REWARD_CART_55413 = 55413;
public static final int REWARD_CART_55414 = 55414;
public static final int REWARD_CART_55415 = 55415;
public static final int REWARD_CART_55416 = 55416;
public static final int ROCKSLIDE_55417 = 55417;
public static final int ROCKSLIDE_55418 = 55418;
public static final int ROCKSLIDE_55419 = 55419;
public static final int GRAPE_STORAGE_55424 = 55424;
public static final int GRAPE_STORAGE_55425 = 55425;
public static final int GRAPE_STORAGE_55426 = 55426;
/* This file is automatically generated. Do not edit. */
}
6 changes: 6 additions & 0 deletions runelite-api/src/main/java/net/runelite/api/ScriptID.java
Original file line number Diff line number Diff line change
Expand Up @@ -461,4 +461,10 @@ public final class ScriptID

@ScriptArguments(integer = 2)
public static final int MOTHERLODE_HUD_UPDATE = 1634;

@ScriptArguments(integer = 1)
public static final int POTIONSTORE_DOSES = 3750;

@ScriptArguments(integer = 1)
public static final int POTIONSTORE_WITHDRAW_DOSES = 4818;
}
Original file line number Diff line number Diff line change
Expand Up @@ -127,19 +127,19 @@ default void prepareSceneDraw(
{
}

default void drawPass(Projection projection, Scene scene, int pass)
default void drawPass(Projection entityProjection, Scene scene, int pass)
{
}

default void drawZone(Projection projection, Scene scene, int pass, int zx, int zz)
default void drawZone(Projection entityProjection, Scene scene, int pass, int zx, int zz)
{
}

default void drawDynamic(Scene scene, TileObject tileObject, Renderable r, Model m, int orient, int x, int y, int z)
default void drawDynamic(Projection worldProjection, Scene scene, TileObject tileObject, Renderable r, Model m, int orient, int x, int y, int z)
{
}

default void drawTemp(Scene scene, GameObject gameObject, Model m)
default void drawTemp(Projection worldProjection, Scene scene, GameObject gameObject, Model m)
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,11 @@ Widget setSize(int width, int height,
*/
void setNoScrollThrough(boolean noScrollThrough);

/**
* {@link net.runelite.api.VarPlayer}s that triggers this widgets varTransmitListener
*/
int[] getVarTransmitTrigger();

/**
* {@link net.runelite.api.VarPlayer}s that triggers this widgets varTransmitListener
*/
Expand Down
17 changes: 14 additions & 3 deletions runelite-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<parent>
<groupId>net.runelite</groupId>
<artifactId>runelite-parent</artifactId>
<version>1.10.38-SNAPSHOT</version>
<version>1.10.39-SNAPSHOT</version>
</parent>

<artifactId>client</artifactId>
Expand All @@ -41,7 +41,7 @@
<git.commit.id.abbrev>nogit</git.commit.id.abbrev>
<git.dirty>false</git.dirty>
<shade.skip>false</shade.skip>
<microbot.version>1.5.1</microbot.version>
<microbot.version>1.5.2</microbot.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -411,10 +411,21 @@
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>shaded</shadedClassifierName>
<createDependencyReducedPom>false</createDependencyReducedPom>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/versions/**/module-info.class</exclude>
</excludes>
</filter>
</filters>

<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>net.runelite.client.RuneLite</mainClass>
<manifestEntries>
<Main-Class>net.runelite.client.RuneLite</Main-Class>
<Multi-Release>true</Multi-Release>
</manifestEntries>
</transformer>
</transformers>
<filters>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ private static class OutlineKey
put(GRACEFUL_LEGS_27455, GRACEFUL_LEGS_27453).
put(GRACEFUL_GLOVES_27458, GRACEFUL_GLOVES_27456).
put(GRACEFUL_BOOTS_27461, GRACEFUL_BOOTS_27459).
put(GRACEFUL_HOOD_30047, GRACEFUL_HOOD_30045).
put(GRACEFUL_CAPE_30050, GRACEFUL_CAPE_30048).
put(GRACEFUL_TOP_30053, GRACEFUL_TOP_30051).
put(GRACEFUL_LEGS_30056, GRACEFUL_LEGS_30054).
put(GRACEFUL_GLOVES_30059, GRACEFUL_GLOVES_30057).
put(GRACEFUL_BOOTS_30062, GRACEFUL_BOOTS_30060).

put(MAX_CAPE_13342, MAX_CAPE).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ private static boolean isAnimationInterpolatable(int animId)
case AnimationID.WYRM_ATTACK_MELEE:
case AnimationID.WYRM_ATTACK_MAGE:

case AnimationID.CYCLOPS_ATTACK:

case AnimationID.TREE_SPIRIT_IDLE:
case AnimationID.TREE_SPIRIT_WALK:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
import net.runelite.client.events.ConfigChanged;
import net.runelite.client.plugins.Plugin;
import net.runelite.client.plugins.PluginDescriptor;
import static net.runelite.client.plugins.attackstyles.AttackStyle.CASTING;
import static net.runelite.client.plugins.attackstyles.AttackStyle.DEFENSIVE;
import static net.runelite.client.plugins.attackstyles.AttackStyle.DEFENSIVE_CASTING;
import static net.runelite.client.plugins.attackstyles.AttackStyle.OTHER;
Expand Down Expand Up @@ -296,6 +297,14 @@ private AttackStyle[] getWeaponTypeStyles(int weaponType)
int weaponStyleEnum = client.getEnum(EnumID.WEAPON_STYLES).getIntValue(weaponType);
if (weaponStyleEnum == -1)
{
// Blue moon spear
if (weaponType == 22)
{
return new AttackStyle[]{
AttackStyle.ACCURATE, AttackStyle.AGGRESSIVE, null, DEFENSIVE, CASTING, DEFENSIVE_CASTING
};
}

if (weaponType == 30)
{
// Partisan
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,15 @@ public void startUp()
cleanConfig();
spriteManager.addSpriteOverrides(TabSprites.values());
eventBus.register(tabInterface);
eventBus.register(layoutManager);
layoutManager.register();
clientThread.invokeLater(this::reinitBank);
}

@Override
public void shutDown()
{
eventBus.unregister(tabInterface);
eventBus.unregister(layoutManager);
layoutManager.unregister();
clientThread.invokeLater(() ->
{
// since the tab interface is unregistered from the eventbus, manually deinit it
Expand Down
Loading

0 comments on commit b0de1d1

Please sign in to comment.