Summoning now counts for claiming a trimmed skill cape
Fixed trimmed smithing cape being awarded with no other 99s
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user