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:
Melledy
2025-12-19 01:18:37 -08:00
parent 496d012c36
commit 495e76a456
4 changed files with 115 additions and 1 deletions

View File

@@ -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;
}