From d888a974591f5cd8bcc882998130636e1794ac3b Mon Sep 17 00:00:00 2001 From: Pessoal Dev Date: Fri, 22 Nov 2024 07:42:55 -0300 Subject: [PATCH 1/2] chore: publish on release --- .github/workflows/publish.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c25abcae6..92638a8be 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: From 5430e6ee93255e09bbcbf64ddad4456f03c25a17 Mon Sep 17 00:00:00 2001 From: Pessoal Dev Date: Fri, 22 Nov 2024 07:49:57 -0300 Subject: [PATCH 2/2] fix: directions on random_movement --- CHANGELOG.md | 2 +- lib/mixins/random_movement.dart | 4 +++- pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 02874ce2b..6f36b73c8 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 0dadc85ca..bd0657bb9 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 0588e1dac..56c768f00 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