Skip to content

Commit

Permalink
Animate research and training
Browse files Browse the repository at this point in the history
  • Loading branch information
tonihele committed Jul 5, 2024
1 parent fc95a16 commit c45f5ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/toniarts/openkeeper/game/logic/CreatureViewSystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import toniarts.openkeeper.game.component.Unconscious;
import toniarts.openkeeper.game.controller.creature.CreatureState;
import toniarts.openkeeper.game.task.TaskType;
import static toniarts.openkeeper.game.task.TaskType.TRAIN;
import toniarts.openkeeper.tools.convert.map.Creature;

/**
Expand Down Expand Up @@ -161,6 +162,10 @@ private static Creature.AnimationType getAnimation(TaskType taskType) {
return Creature.AnimationType.SLEEPING;
case DIG_TILE:
return Creature.AnimationType.MELEE_ATTACK;
case TRAIN:
return Creature.AnimationType.MELEE_ATTACK;
case RESEARCH:
return Creature.AnimationType.RESEARCHING;
default:
return Creature.AnimationType.STAND_STILL;
}
Expand Down

0 comments on commit c45f5ba

Please sign in to comment.