mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-20 01:29:54 +02:00
Added command to set a trekker's emblem stats
Usage: `!e [character id] [slot id - this is between 1 and 3] [attr 1] [attr 2] [attr 3] [attr 4]` Example: `!e 141 1 1004 1004 1004 1004` = Sets the first emblem of the character to all +ignis damage. Notes: Attribute ids can be found in `CharGemAttrValue.json` in the resources/bin folder.
This commit is contained in:
@@ -25,6 +25,10 @@ public class CharacterGem {
|
||||
public void setLocked(boolean locked) {
|
||||
this.locked = locked;
|
||||
}
|
||||
|
||||
public void setAttributes(IntList attributes) {
|
||||
this.attributes = attributes.toIntArray();
|
||||
}
|
||||
|
||||
public void setNewAttributes(IntList attributes) {
|
||||
this.alterAttributes = attributes.toIntArray();
|
||||
|
||||
@@ -27,7 +27,9 @@ public class CharacterGemPreset {
|
||||
return this.getGems().length;
|
||||
}
|
||||
|
||||
public int getGemIndex(int slotIndex) {
|
||||
public int getGemIndex(int slotId) {
|
||||
int slotIndex = slotId - 1;
|
||||
|
||||
if (slotIndex < 0 || slotIndex >= this.getLength()) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -36,6 +36,10 @@ public class CharacterGemSlot {
|
||||
return getGems().size() >= GameConstants.CHARACTER_MAX_GEMS_PER_SLOT;
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return getGems().size() <= 0;
|
||||
}
|
||||
|
||||
// Proto
|
||||
|
||||
public CharGemSlot toProto() {
|
||||
|
||||
Reference in New Issue
Block a user