Skip to content

Instantly share code, notes, and snippets.

@kui
Last active November 6, 2024 14:27
Show Gist options
  • Save kui/cbc6bbe97010161d501249b05d486d63 to your computer and use it in GitHub Desktop.
Save kui/cbc6bbe97010161d501249b05d486d63 to your computer and use it in GitHub Desktop.
物流ネットワークの要求に応じて組立機のレシピを変更するやつ
ランダムでアイテム抽選して要求満たすまでレシピを固定
要求を満たすかタイムアウトしたら再抽選
タイムアウトではなく素材が足りなかったら即時再抽選だと素材アイテムがあらかじめ作られていない限りはいつまで経っても作られないのでやめた
タイムアウト方式であれば必要な素材が要求アイテムとして積まれるので他の組立機が用意してくれる可能性が高い
素材不足でスキップ方式も素材アイテムを漏れなくバッファリングするようにバッファチェストを用意できるならいいかもしれないが
それならそもそもスキップが発生しなくなるしあんまり意味なさそう
でもタイマー回路は消せるし回路減るかな?
0eNrVWltP29gW/iuV3+bIGRHCXeo8nfd56VupokBMsRrsjOPQQRVSbKdtINzbHgSBcikkQFrSninlUi7/ZTZOwtP8hbPW2rZzIRRCmY6OVIHZttdee12+9a3lPhP6InEpqsmKLvQ8E+R+VYkJPQ+fCTH5sRKK4JoSGpKEHkFT+9SoqunCqCjISlj6Xejxj4oNHgzFYtJQX0RWHvuGQv2DsiL5AlUvtY4+EgVJ0WVdlvhW9MdIUIkP9UkaSBVdSaiMHlJ0X7861CcrIV3VBFGIqjF4V1VwS1Sipb3z53ZRGBF6fIFuuISt4EVdUyPBPmkwNCzDW/BoTOrHt2K117C9exhRGJAjuqTVrzrK6FpIiaEBfH1SRAc9fouHIqA33FJUbQhMgPsORUMa6dkj3KeFOBqWDOWe35M4EIrpvrsS2+aJlZWYpME5bi+r3ZMVUcGLgyFYDvu+X25H7dG/X2Bn5dCaqvgeSyHN93RQkiK3F9nliYzKUalZOY+qHQ1/QSxGI6ERSQuGpVi/Jkd54Ap24bT8aY0Zu6W9ZCmfLm6vMHOdWe+ZucGM/PnJEjPHmJFhxgozkngL1q0XzFo9P0iUs7lepfK4OWenXjBjlhlZeJWZ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lUXlyv5xNl0+PcRADjpnJczgsHmQ89kmeS/N9/jpeccY0u0RHC0hH0ZT/OT/NlPayxDdzjpVxMvQWR0FIVHdohDtDgcsnwVulrWPbmjw/+EBDGJrTOpPxJOC1/WGeXJ9zBjpEnneJJyQpUDacUHAmvBzC3XF0wiAlZsnzCdo7RXMdgP8kmBBSh0RTGOHGNOtHO7+k2N+y8xNkbZpa2ckd+3nKPspSRE8x07iDEbG//XadUKBRBN1VK+SvzGFCIH5Y8kU1dZhXt5tQelSukdjOJrKlirH5r2+xkmsXORqyeZyyCo2/2YVfJAx4CoKqODV3sbBB7n55ZI9nLvGEQjE1U3y7BHnlIkPO+QoCcVa7r9enVwFhvrgLyZMu5QvUxpnEOhL8W8h36F87RZhHCKfPJbXa8yxzPpSAxvhUDhGQ959O25k9Pzmj7HnhnjBPt7bxc03CKC6vnX/94uJ8oX7msbCFVrSe26ufIOtJFE5Oq7+qEHKAgb3vPgD30LF6mE5AW85n6fNQlkoFT2ccFv9trWtXsxyu65uR+cOai7smUuJdssq7Gc094KDZrEK343NVvApi9PlmQxz46zjFqdRfx2MYwek3XtdA1OIrL7fA/A7G8ZMGzzQzT19D/qCKuE6PzLsgQXFe9SpZ6ynEFNrqIRABsU1sfSQ+DIh+uPLDVZsYENvpCn6KEHP8MiB20FUHLgbEAF22wmIbXQXETrrdyW/zS3jXT9K7cJUL9bfgtZ8EgPBWXG/l1wFXMPyC9S4S7Sctuvi7Xe46HAI/WWJh8/5jjShAzMbI3O0drd1t3d3tbYFAV5e/a3T0fwckzj8=
@kui
Copy link
Author

kui commented Nov 6, 2024

スクリーンショット 2024-11-06 231519
スクリーンショット 2024-11-06 231551

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment