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)
|
item.shrink(count)
|
||||||
inventory.setChanged()
|
inventory.setChanged()
|
||||||
level.addFreshEntity(ItemEntity(level, entity.x, entity.y + 0.25, entity.z, item.copyWithCount(count)))
|
level.addFreshEntity(ItemEntity(level, entity.x, entity.y + 0.25, entity.z, item.copyWithCount(count)))
|
||||||
|
return@Trigger true
|
||||||
|
} else {
|
||||||
|
return@Trigger false
|
||||||
}
|
}
|
||||||
return@Trigger true
|
|
||||||
})
|
})
|
||||||
}
|
}
|
@ -148,7 +148,7 @@ object ProjectedPersonAI {
|
|||||||
private fun initWorkActivity(brain: Brain<ProjectedPersonEntity>) {
|
private fun initWorkActivity(brain: Brain<ProjectedPersonEntity>) {
|
||||||
brain.addActivity(
|
brain.addActivity(
|
||||||
Activity.WORK, ImmutableList.of(
|
Activity.WORK, ImmutableList.of(
|
||||||
7 weight ExchangeItem(),
|
5 weight ExchangeItem(),
|
||||||
10 weight createStrollBehavior(),
|
10 weight createStrollBehavior(),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user