Browse Source

Added ./setrace command

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

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

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

Loading…
Cancel
Save