Summoning now counts for claiming a trimmed skill cape

Fixed trimmed smithing cape being awarded with no other 99s
This commit is contained in:
Sam Marder
2026-06-20 13:43:41 +00:00
committed by Ryan
parent 1727cde92f
commit a3fbce0e6f
2 changed files with 9 additions and 11 deletions
@@ -155,7 +155,7 @@ public final class ThuroDialogue extends DialoguePlugin {
stage = 14;
return true;
}
player.getInventory().add(player.getSkills().getMasteredSkills() >= 1 ? ITEMS[1] : ITEMS[0]);
player.getInventory().add(player.getSkills().getMasteredSkills() > 1 ? ITEMS[1] : ITEMS[0]);
player.getInventory().add(ITEMS[2]);
interpreter.sendDialogues(npc, FacialExpression.OLD_NORMAL, "There you go! You're truley a master of Smithing.");
stage = 16;
@@ -488,7 +488,7 @@ public final class ThuroDialogue extends DialoguePlugin {
stage = 14;
return true;
}
player.getInventory().add(player.getSkills().getMasteredSkills() >= 1 ? ITEMS[1] : ITEMS[0]);
player.getInventory().add(player.getSkills().getMasteredSkills() > 1 ? ITEMS[1] : ITEMS[0]);
player.getInventory().add(ITEMS[2]);
interpreter.sendDialogues(npc, FacialExpression.OLD_NORMAL, "There you go! You're truley a master of Smithing.");
stage = 16;
@@ -1,34 +1,32 @@
package core.game.node.entity.skill;
import content.global.handlers.item.equipment.brawling_gloves.BrawlingGloves;
import content.global.handlers.item.equipment.brawling_gloves.BrawlingGlovesManager;
import content.global.skill.skillcapeperks.SkillcapePerks;
import core.ServerConstants;
import core.game.event.DynamicSkillLevelChangeEvent;
import core.game.event.XPGainEvent;
import content.global.handlers.item.equipment.brawling_gloves.BrawlingGloves;
import content.global.handlers.item.equipment.brawling_gloves.BrawlingGlovesManager;
import core.game.node.entity.Entity;
import core.game.node.entity.combat.ImpactHandler;
import core.game.node.entity.npc.NPC;
import core.game.node.entity.player.Player;
import core.game.node.entity.player.info.PlayerMonitor;
import core.game.node.entity.player.link.request.assist.AssistSession;
import core.game.node.item.Item;
import core.game.world.GameWorld;
import core.game.world.repository.Repository;
import core.net.packet.PacketRepository;
import core.net.packet.context.SkillContext;
import core.net.packet.out.SkillLevel;
import core.plugin.CorePluginTypes.XPGainPlugins;
import kotlin.Pair;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import core.game.node.entity.player.info.PlayerMonitor;
import core.game.world.GameWorld;
import core.game.world.repository.Repository;
import core.plugin.CorePluginTypes.XPGainPlugins;
import org.rs09.consts.Items;
import org.rs09.consts.Sounds;
import java.util.ArrayList;
import static core.api.ContentAPIKt.getWorldTicks;
import static core.api.ContentAPIKt.playAudio;
import static java.lang.Math.floor;
import static java.lang.Math.max;
@@ -828,7 +826,7 @@ public final class Skills {
*/
public int getMasteredSkills() {
int count = 0;
for (int i = 0; i < 23; i++) {
for (int i = 0; i < staticLevels.length; i++) {
if (getStaticLevel(i) >= 99) {
count++;
}