fix: only stroll in near positions

This commit is contained in:
xtex 2023-08-11 16:00:14 +08:00
parent 6cc16233fa
commit d110d688c6
Signed by: xtex
GPG Key ID: B918086ED8045B91

View File

@ -161,8 +161,13 @@ object ProjectedPersonAI {
5 weight ExchangeItem(), 5 weight ExchangeItem(),
7 weight WorkPoiAI.createStrollAroundPoi(), 7 weight WorkPoiAI.createStrollAroundPoi(),
7 weight WorkPoiAI.createStrollToPoi(), 7 weight WorkPoiAI.createStrollToPoi(),
10 weight createStrollBehavior(), 10 weight RunOne(
10 weight WorkPoiAI.createAcquirePoi(), mapOf(),
listOf(
1 weightR createStrollBehavior(),
1 weightR WorkPoiAI.createAcquirePoi(),
)
),
) )
) )
} }
@ -186,7 +191,7 @@ object ProjectedPersonAI {
private fun createStrollBehavior() = RunOne( private fun createStrollBehavior() = RunOne(
listOf( listOf(
2 weightR RandomStroll.stroll(1.0f), 2 weightR RandomStroll.stroll(1.0f, 25, 12),
2 weightR SetWalkTargetFromLookTarget.create(1.0f, 5), 2 weightR SetWalkTargetFromLookTarget.create(1.0f, 5),
1 weightR DoNothing(30, 60) 1 weightR DoNothing(30, 60)
) )