mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-13 05:44:36 +01:00
Fix lightcone/relic equipping
This commit is contained in:
@@ -32,6 +32,10 @@ public class AvatarStorage extends BasePlayerManager implements Iterable<GameAva
|
|||||||
}
|
}
|
||||||
|
|
||||||
public GameAvatar getAvatarById(int id) {
|
public GameAvatar getAvatarById(int id) {
|
||||||
|
if (this.getHeroPaths().containsKey(id)) {
|
||||||
|
id = GameConstants.TRAILBLAZER_AVATAR_ID;
|
||||||
|
}
|
||||||
|
|
||||||
return getAvatars().get(id);
|
return getAvatars().get(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -280,6 +280,7 @@ public class GameItem {
|
|||||||
.setIsProtected(this.isLocked())
|
.setIsProtected(this.isLocked())
|
||||||
.setIsDiscarded(this.isDiscarded())
|
.setIsDiscarded(this.isDiscarded())
|
||||||
.setBaseAvatarId(this.getEquipAvatar())
|
.setBaseAvatarId(this.getEquipAvatar())
|
||||||
|
.setEquipAvatarId(this.getEquipAvatar())
|
||||||
.setMainAffixId(this.mainAffix);
|
.setMainAffixId(this.mainAffix);
|
||||||
|
|
||||||
if (this.subAffixes != null) {
|
if (this.subAffixes != null) {
|
||||||
@@ -300,7 +301,8 @@ public class GameItem {
|
|||||||
.setIsProtected(this.isLocked())
|
.setIsProtected(this.isLocked())
|
||||||
.setPromotion(this.getPromotion())
|
.setPromotion(this.getPromotion())
|
||||||
.setRank(this.getRank())
|
.setRank(this.getRank())
|
||||||
.setBaseAvatarId(this.getEquipAvatar());
|
.setBaseAvatarId(this.getEquipAvatar())
|
||||||
|
.setEquipAvatarId(this.getEquipAvatar());
|
||||||
|
|
||||||
return proto;
|
return proto;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user