Cap creation at 10 runes and 8 talents like the client

The rune count limit drops from 16 to the client's 10 slots, race and class
included (CharCreate_ApplyRune 0xBA8C80), and more than 8 talents is
refused (ArcCharacter_AddRune 0x4695D0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
MagicBotandClaude Opus 5.5 committed 2026-10-22 07:10:03 -04:00
1 parent bd57c2a3f9
commit d6bda1fff0
1 file changed
+8 -2
+8 -2
View File
@@ -851,10 +851,10 @@ public class PlayerCharacter extends AbstractCharacter {
short intMax = race.getIntMax();
short spiMax = race.getSpiMax();
// Verify not too many runes applied
// 10 rune slots including race and class (client 0xBA8C80)
int numRunes = msg.getNumRunes();
if (numRunes > 16) {
if (numRunes > 10) {
Logger.info("Too many Runes applied");
return null;
}
@@ -936,6 +936,12 @@ public class PlayerCharacter extends AbstractCharacter {
usedRunes.add(runeBase);
// Talent cap of 8 (client 0x4695D0)
if (usedRunes.size() > 8) {
Logger.info("Too many talents applied");
return null;
}
int maxValue = 0;
// Every attempt is made to load MIN_NEEDED_ATTRIBUTES first.