diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c25abcae..92638a8b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,9 +1,8 @@ name: Publish plugin on: - workflow_dispatch: - # release: - # types: [published] + release: + types: [published] jobs: publish: diff --git a/CHANGELOG.md b/CHANGELOG.md index 02874ce2..6f36b73c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# 3.12.2 +# 3.12.3 - `RandomMovement` improvements # 3.12.1 diff --git a/lib/mixins/random_movement.dart b/lib/mixins/random_movement.dart index 0dadc85c..bd0657bb 100644 --- a/lib/mixins/random_movement.dart +++ b/lib/mixins/random_movement.dart @@ -75,6 +75,7 @@ mixin RandomMovement on Movement { minDistance, maxDistance, checkDirectionWithRayCast, + directions, ); if (target == null) { _stop(); @@ -154,11 +155,12 @@ mixin RandomMovement on Movement { double minDistance, double maxDistance, bool checkDirectionWithRayCast, + RandomMovementDirections directions, ) { int index = 0; while (index < 100) { final distance = _getDistance(minDistance, maxDistance); - final direction = _getDirection(RandomMovementDirections.all); + final direction = _getDirection(directions); final targetPosition = _getTargetPosition(direction, distance); bool isRaycastOk = true; diff --git a/pubspec.yaml b/pubspec.yaml index 0588e1da..56c768f0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: bonfire description: (RPG maker) Create RPG-style or similar games more simply with Flame. -version: 3.12.2 +version: 3.12.3 homepage: https://bonfire-engine.github.io repository: https://github.com/RafaelBarbosatec/bonfire issue_tracker: https://github.com/RafaelBarbosatec/bonfire/issues