Fixed lantern holding logic

This commit is contained in:
Joshua Barretto 2023-10-12 18:08:24 +01:00
parent eab9e0e047
commit 1d33d7e4c4

View File

@ -1101,9 +1101,9 @@ impl FigureMgr {
let holding_lantern = inventory
.map_or(false, |i| i.equipped(EquipSlot::Lantern).is_some())
&& light_emitter.is_some()
&& !(second_tool_hand.is_some()
|| matches!(active_tool_hand, Some(Hands::Two))
&& character.map_or(false, |c| c.is_wield()))
&& ((second_tool_hand.is_none()
&& matches!(active_tool_hand, Some(Hands::One)))
|| !character.map_or(false, |c| c.is_wield()))
&& !character.map_or(false, |c| c.is_using_hands())
&& physics.in_liquid().is_none();