fix: lost item
This commit is contained in:
parent
94be2a823f
commit
cb9ae35260
@ -21,7 +21,9 @@ fun <E> LostItem(chance: Int): OneShot<E>
|
||||
item.shrink(count)
|
||||
inventory.setChanged()
|
||||
level.addFreshEntity(ItemEntity(level, entity.x, entity.y + 0.25, entity.z, item.copyWithCount(count)))
|
||||
}
|
||||
return@Trigger true
|
||||
} else {
|
||||
return@Trigger false
|
||||
}
|
||||
})
|
||||
}
|
@ -148,7 +148,7 @@ object ProjectedPersonAI {
|
||||
private fun initWorkActivity(brain: Brain<ProjectedPersonEntity>) {
|
||||
brain.addActivity(
|
||||
Activity.WORK, ImmutableList.of(
|
||||
7 weight ExchangeItem(),
|
||||
5 weight ExchangeItem(),
|
||||
10 weight createStrollBehavior(),
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user