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") self:addSubMenu("combat", "BaseMenu", "Battle System")
menu.commons.SceneWidget(self, "combat", scenes.cbs, "Launch Battle") 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.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") menu.commons.SubMenuWidget(self, "combat", "BaseMenu", "Back")
end end

View file

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

View file

@ -20,7 +20,7 @@ end
function FighterMock:playHeroChoregraphy(character, data) function FighterMock:playHeroChoregraphy(character, data)
self.name = character self.name = character
self.abstract = game.characters.list[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 = ActionMock(self, data)
self.action:setTarget(TargetMock(self.scene)) self.action:setTarget(TargetMock(self.scene))
self.action:start() self.action:start()

View file

@ -2,7 +2,7 @@ local TargetMock = Object:extend()
function TargetMock:new(scene) function TargetMock:new(scene)
self.scene = 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 end
return TargetMock return TargetMock