Browse Source

Added ./setrace command

combat-2
FatBoy-DOTC 8 months ago
parent
commit
b198dbcc09
  1. 2
      src/engine/devcmd/cmds/SetRaceCmd.java

2
src/engine/devcmd/cmds/SetRaceCmd.java

@ -9,6 +9,7 @@
package engine.devcmd.cmds; package engine.devcmd.cmds;
import engine.InterestManagement.InterestManager;
import engine.InterestManagement.WorldGrid; import engine.InterestManagement.WorldGrid;
import engine.devcmd.AbstractDevCmd; import engine.devcmd.AbstractDevCmd;
import engine.gameManager.BuildingManager; import engine.gameManager.BuildingManager;
@ -36,6 +37,7 @@ public class SetRaceCmd extends AbstractDevCmd {
NPC npc = (NPC)target; NPC npc = (NPC)target;
npc.loadID = newRace; npc.loadID = newRace;
DbManager.NPCQueries.UPDATE_RACE(npc,newRace); DbManager.NPCQueries.UPDATE_RACE(npc,newRace);
InterestManager.reloadCharacter(npc);
} }
@Override @Override

Loading…
Cancel
Save