Menu

#376 use object_can_merge() to deduplicate starting inventory

None
closed
nobody
None
5
2020-10-20
2020-09-10
No

This partially fixes an issue where casters only get one spellbook no matter how many their treasurelist says they should start with; the old code considered all spellbooks equivalent as long as they had the same base name, no matter what spell they contained.

Note that if genuine duplicates are generated (e.g. the player gets two books of burning hands) one of them will still be pruned; no attempt is made to generate a replacement book or give them the value of the book in platinum or something as compensation.

1 Attachments

Discussion

  • Rebecca Kelly

    Rebecca Kelly - 2020-09-10

    Please use this patch instead (argument order changed to match the enclosing macro).

     
  • Nicolas Weeger

    Nicolas Weeger - 2020-09-11
    • status: open --> patched
    • Group: -->
     
  • Nicolas Weeger

    Nicolas Weeger - 2020-09-11

    Applied to SVN as revision 21393, thanks!

     
  • Nicolas Weeger

    Nicolas Weeger - 2020-10-20
    • status: patched --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.