Write static_rune_lookup from the loaded race and class caches at world boot
The DB views char_perAccount and dyn_trash_detail lost their race and class names when 2.11 dropped the Phase 2 tables. The world server now rewrites the generated static_rune_lookup table (ID, type, name) after the second Race.loadAllRaces(): 26 player races, 4 base classes, the promotion runes and the CSR promotion rows 2901-2911. One transaction (delete, batch insert, commit); on any failure it rolls back and logs a warning, the boot continues. Names come from the runes: races use obj_name (as in 2.3), classes the rune names, so DB typos such as "Theif" become "Thief" in the views. No gameplay change. Needs JSON-Refactor-Plan/sql/2.12-rune-lookup.sql (table, level functions, views) run before boot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8b9aa43c1b
commit
db67e56302
3 files changed
+66
No files matched your search
@@ -19,6 +19,7 @@ import engine.util.Hasher;
|
||||
import org.pmw.tinylog.Logger;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Map;
|
||||
@@ -174,6 +175,10 @@ public class Race {
|
||||
return _raceByID.get(id);
|
||||
}
|
||||
|
||||
public static Collection<Race> getAllRaces() {
|
||||
return _raceByID.values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user