Re-add twist when reloading, stop reload when full ammo

This commit is contained in:
2022-06-22 20:41:37 +01:00
parent 2ebad5da2a
commit fff5c87092
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -50,6 +50,7 @@ tryStartLoading cr = case ic ^? laProgress . _Just . ix 0 of
Nothing -> case ic ^? laCycle of
Nothing -> cr
Just [] -> error ("item has empty load cycle" ++ show (cr ^?! crInv . ix (crSel cr) . itType))
Just _ | _laLoaded ic >= _laMax ic -> cr
Just (la:las) -> cr & startLoadAction la
& crInv . ix (crSel cr) . itConsumption . laProgress ?~ (la:las)
where