improvement: make the choregraphy viewer ennemy-oriented

This commit is contained in:
Kazhnuz 2020-08-04 12:27:33 +02:00
parent b5c6cf0b1f
commit 871ccb250f
4 changed files with 4 additions and 4 deletions

View file

@ -32,7 +32,7 @@ function DebugMenu:buildBattleMenu()
self:addSubMenu("combat", "BaseMenu", "Battle System")
menu.commons.SceneWidget(self, "combat", scenes.cbs, "Launch Battle")
menu.commons.SceneWidget(self, "combat", scenes.debug.viewers.battleBack, "Background Viewer")
menu.commons.SceneWidget(self, "combat", scenes.debug.viewers.choregraphy, "Choregraphy Viewer")
menu.commons.SceneWidget(self, "combat", scenes.debug.viewers.choregraphy, "Ennemies' Action Viewer")
menu.commons.SubMenuWidget(self, "combat", "BaseMenu", "Back")
end

View file

@ -28,7 +28,7 @@ function ChoregraphyViewer:buildMenu()
end
function ChoregraphyViewer:buildCharacterMenu()
self:addSubMenu("characters", "MainMenu", "Characters")
self:addSubMenu("characters", "MainMenu", "Rivals")
for k, character in pairs(game.characters.list) do
self:addSubMenu(k, "characters", character.fullname)
menu.HeroChoregraphyWidget(self, k, game.skills:getSkillData("attack"))

View file

@ -20,7 +20,7 @@ end
function FighterMock:playHeroChoregraphy(character, data)
self.name = character
self.abstract = game.characters.list[character]
self.actor = self.scene.world.obj.Hero(self.scene.world, 2, 3, self, 1)
self.actor = self.scene.world.obj.Hero(self.scene.world, 11, 3, self, 1)
self.action = ActionMock(self, data)
self.action:setTarget(TargetMock(self.scene))
self.action:start()

View file

@ -2,7 +2,7 @@ local TargetMock = Object:extend()
function TargetMock:new(scene)
self.scene = scene
self.actor = self.scene.world.obj.Battler(self.scene.world, 11, 3, 0, self)
self.actor = self.scene.world.obj.Battler(self.scene.world, 2, 3, 0, self)
end
return TargetMock