mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-23 10:44:36 +01:00
add item rarity to handbook + add msg field to Gateserver
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user