Reworked script service, added cloning terminals to all cloning facilities

This commit is contained in:
Light2
2013-09-16 16:42:30 +02:00
parent f6ce41e1e1
commit 351f1d6bd4
19 changed files with 128 additions and 31 deletions
+2 -2
View File
@@ -96,12 +96,12 @@ public class CommandService implements INetworkDispatch {
if(command instanceof CombatCommand) {
CombatCommand command2 = (CombatCommand) command.clone();
if(FileUtilities.doesFileExist("scripts/commands/combat/" + command.getCommandName() + ".py"))
core.scriptService.callScript("scripts/commands/combat", command.getCommandName(), "setup", core, actor, target, command2);
core.scriptService.callScript("scripts/commands/combat/", command.getCommandName(), "setup", core, actor, target, command2);
processCombatCommand(actor, target, command2, commandEnqueue.getActionCounter(), commandEnqueue.getCommandArguments());
return;
}
System.out.println(command.getCommandName());
core.scriptService.callScript("scripts/commands/", command.getCommandName(), "run", core, actor, target, commandEnqueue.getCommandArguments());
}