fix: sleeping

This commit is contained in:
xtex 2023-07-03 15:41:17 +08:00
parent 175659bcdc
commit 94be2a823f
Signed by: xtex
GPG Key ID: B918086ED8045B91

View File

@ -110,6 +110,7 @@ object ProjectedPersonAI {
private fun initCoreActivity(brain: Brain<ProjectedPersonEntity>) {
brain.addActivity(
Activity.CORE, ImmutableList.of(
0 weight UpdateActivityFromSchedule.create(),
0 weight Swim(0.8f),
0 weight WakeUp.create(),
0 weight StopAttackingIfTargetInvalid.create(),
@ -130,7 +131,6 @@ object ProjectedPersonAI {
brain.addActivity(
Activity.IDLE, ImmutableList.of(
10 weight createStrollBehavior(),
99 weight UpdateActivityFromSchedule.create(),
)
)
}
@ -141,7 +141,6 @@ object ProjectedPersonAI {
7 weight GoToWantedItem.create(1.75f, true, 32),
10 weight JumpOnBed(1.0f),
10 weight createStrollBehavior(),
99 weight UpdateActivityFromSchedule.create(),
)
)
}
@ -151,7 +150,6 @@ object ProjectedPersonAI {
Activity.WORK, ImmutableList.of(
7 weight ExchangeItem(),
10 weight createStrollBehavior(),
99 weight UpdateActivityFromSchedule.create(),
)
)
}
@ -160,8 +158,8 @@ object ProjectedPersonAI {
brain.addActivity(
Activity.REST, ImmutableList.of(
0 weight SleepInBed(),
5 weight GoToTargetLocation.create(MemoryModuleType.NEAREST_BED, 1, 1.05f),
5 weight RunOne(
3 weight GoToTargetLocation.create(MemoryModuleType.NEAREST_BED, 1, 1.05f),
3 weight RunOne(
mapOf(
MemoryModuleType.HOME to MemoryStatus.VALUE_ABSENT
),
@ -169,7 +167,6 @@ object ProjectedPersonAI {
1 weightR createStrollBehavior()
)
),
99 weight UpdateActivityFromSchedule.create(),
)
)
}