add item rarity to handbook + add msg field to Gateserver

This commit is contained in:
Hiro
2023-11-26 21:46:23 +02:00
parent ff6067a079
commit 5ac3285681
3 changed files with 141 additions and 9 deletions

View File

@@ -59,6 +59,28 @@ public class ItemExcel extends GameResource {
return this.relicExp;
}
public int getRarityNum() {
if (this.getRarity() == ItemRarity.Unknown) {
return 0;
}
if (this.getRarity() == ItemRarity.Normal) {
return 1;
}
if (this.getRarity() == ItemRarity.NotNormal) {
return 2;
}
if (this.getRarity() == ItemRarity.Rare) {
return 3;
}
if (this.getRarity() == ItemRarity.VeryRare) {
return 4;
}
if (this.getRarity() == ItemRarity.SuperRare) {
return 5;
}
return 0;
}
public int getRelicExpCost() {
if (this.relicExcel != null) {
return this.relicExcel.getCoinCost();

View File

@@ -24,6 +24,7 @@ public class QueryGatewayHandler implements Handler {
.setRegionName(LunarCore.getConfig().getGameServer().getId())
.setIp(LunarCore.getConfig().getGameServer().getPublicAddress())
.setPort(LunarCore.getConfig().getGameServer().getPort())
.setMsg("Access verification failed. Please check if you have logged in to the correct account and server.") // in case there is some error idk
.setUnk1(true)
.setUnk2(true)
.setUnk3(true)