Skip to content

Commit

Permalink
Merge pull request #569 from RafaelBarbosatec/develop
Browse files Browse the repository at this point in the history
Version 3.12.3
  • Loading branch information
RafaelBarbosatec authored Nov 22, 2024
2 parents f444b63 + 5430e6e commit b97a534
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Publish plugin

on:
workflow_dispatch:
# release:
# types: [published]
release:
types: [published]

jobs:
publish:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 3.12.2
# 3.12.3
- `RandomMovement` improvements

# 3.12.1
Expand Down
4 changes: 3 additions & 1 deletion lib/mixins/random_movement.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ mixin RandomMovement on Movement {
minDistance,
maxDistance,
checkDirectionWithRayCast,
directions,
);
if (target == null) {
_stop();
Expand Down Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b97a534

Please sign in to comment.