weixin_39820158
weixin_39820158
2021-01-12 03:26

Quiver holds different types of arrows

Now a quiver can hold different types of arrows.

If a quiver holds different types of arrows, it is represented : image

If we activate 'Empty quiver' menu : image

该提问来源于开源项目:CleverRaven/Cataclysm-DDA

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

12条回答

  • weixin_39820158 weixin_39820158 4月前

    When select a arrow to fire, we can get the choice between quiver and inventory. image

    点赞 评论 复制链接分享
  • weixin_39977776 weixin_39977776 4月前

    Instead of per shot, perhaps a button in aiming menu or activation of quiver to change type? A menu each time I fire would get tedious.

    点赞 评论 复制链接分享
  • weixin_39820158 weixin_39820158 4月前

    A menu for each fire time exists before too, but yes, I agree with that it is tedious. Maybe it could be a next enhancement.

    点赞 评论 复制链接分享
  • weixin_39979245 weixin_39979245 4月前

    Yes, I think having to choose which arrow to choose every single shot wouldn't be optimal.. I second david's suggestion, giving an option for one of them be automatically selected, unless you want to change it.

    点赞 评论 复制链接分享
  • weixin_39543478 weixin_39543478 4月前

    The previously used ammo type is preselected, you only need to press enter in that menu.

    点赞 评论 复制链接分享
  • weixin_39702400 weixin_39702400 4月前

    Doesn't accept different arrow types when manually loading them from the inventory, and in testing only ever fired the second of three types, rather than the type I opted to fire. Not ready for prime time, sorry.

    点赞 评论 复制链接分享
  • weixin_39543478 weixin_39543478 4月前

    Now that you say so, this can not work at all, currently.

    The inventory position of the item that is used as ammo does not support different items in a container. That means if you choose the arrow, it will store the item position of the container (the quiver) because the items inside the container have no position index. The system simply does not allow that.

    Example: if the quiver is the second worn item, its item position is 1 (the first worn item has position 0). This position refers to the order in the worn item list btw. Items inside it have no position, but the reload function is smart enough to recognize the quiver as container and uses the contents of it. It works the same for liquid fuel in a container in the main inventory.

    点赞 评论 复制链接分享
  • weixin_39820158 weixin_39820158 4月前

    Apologize to forgot the storing arrows test through the activate menu. I'll fix it after work.

    点赞 评论 复制链接分享
  • weixin_39820158 weixin_39820158 4月前

    If I missed the case please notify.

    TESTING Wear a quiver which has 4 carbon fiver arrows + 5 flaming arrows ----[✔]Store 39 fletched metal arrows by activate menu -> quiver charge becomes 20, 11 fletched metal arrows stored, 28 arrows goes to inventory. ----[✔]Store 8 plastic arrows by activate menu -> quiver charge becomes 17

    [✔]Store more arrows to full quiver by activate menu -> can't

    点赞 评论 复制链接分享
  • weixin_39702400 weixin_39702400 4月前

    BevapDin's saying that the firing-side problem is insurmountable with the current codebase. I'm inclined to believe him. Until and unless someone works out a solution, this can't be made mergeable, so closing. Post a solution and we'll reopen. Sorry, hesu.

    点赞 评论 复制链接分享
  • weixin_39820158 weixin_39820158 4月前

    Right, sorry for missing consideration.

    点赞 评论 复制链接分享
  • weixin_39752215 weixin_39752215 4月前

    I like this idea, but how will it handle when you fire? Do you get the choice between arrows as if you had them in your inventory?

    点赞 评论 复制链接分享