STAR TREK 2d20
  1. #1

    isWeapon returning false unexpectedly

    With 3.5E (and therefore those rulesets that inherit), I'm getting unexpected results with ItemManager2.isWeapon(). I am checking against an orcish axe defined in the basic rules:
    axe.jpg

    When I call isWeapon
    Code:
    Debug.chat(item, ItemManager2.isWeapon(item))
    the result is
    Code:
    databasenode = { charsheet.id-00001.inventorylist.id-00004 } | bFALSE | s'weapon' | s'exotic two-handed melee'
    As you can see, isWeapon returns bFALSE. I compared to the 5E ItemManager, and the big different is that 3.5E first checks sClass before checking the item type. Is this a bug? Should I be using the manager in a different way?

  2. #2
    It looks like this function hasn't been working for awhile; and hasn't really been noticed, because it's only used in one not very obvious location. (weapon drop on Actions weapon list)

    I'll push a fix for the next ruleset update.

    Regards,
    JPG

  3. #3

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
FG Spreadshirt Swag

Log in

Log in