mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-13 04:45:02 +01:00
Add default head icons for the player
This commit is contained in:
@@ -68,6 +68,10 @@ public class Inventory extends PlayerManager implements GameDatabaseObject {
|
||||
this.shopBuyCount = new ItemParamMap();
|
||||
this.mallBuyCount = new String2IntMap();
|
||||
|
||||
// Add player heads
|
||||
this.getHeadIcons().add(101);
|
||||
this.getHeadIcons().add(102);
|
||||
|
||||
// Add titles directly
|
||||
this.getTitles().add(player.getTitlePrefix());
|
||||
this.getTitles().add(player.getTitleSuffix());
|
||||
@@ -164,16 +168,16 @@ public class Inventory extends PlayerManager implements GameDatabaseObject {
|
||||
|
||||
// Add character skins
|
||||
for (var character : getPlayer().getCharacters().getCharacterCollection()) {
|
||||
// Add default skin id
|
||||
// Add default head icon id
|
||||
icons.add(character.getData().getDefaultSkinId());
|
||||
|
||||
// Add advance skin
|
||||
// Add advance head icon
|
||||
if (character.getAdvance() >= character.getData().getAdvanceSkinUnlockLevel()) {
|
||||
icons.add(character.getData().getAdvanceSkinId());
|
||||
}
|
||||
}
|
||||
|
||||
// Finally, add extra skins
|
||||
// Finally, add extra head icons
|
||||
icons.addAll(this.getHeadIcons());
|
||||
|
||||
// Complete and return
|
||||
|
||||
@@ -135,7 +135,7 @@ public class Player implements GameDatabaseObject {
|
||||
this.name = name;
|
||||
this.signature = "";
|
||||
this.gender = gender;
|
||||
this.headIcon = 101;
|
||||
this.headIcon = gender ? 101 : 102;
|
||||
this.skinId = 10301;
|
||||
this.titlePrefix = 1;
|
||||
this.titleSuffix = 2;
|
||||
|
||||
Reference in New Issue
Block a user