Items with KEEPDEPLETED flag are not darkened in inventory

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!

Items with KEEPDEPLETED flag are not darkened in inventory

Postby Virathas » Mon Jul 05, 2021 5:34 am

Hey

I am not sure if this is a design change at some point (when moving from SBARINFO into Zscript), however, any inventory items that are depleted and have the KEEPDEPLETED flag active, will be displayed in inventory the same way as if the player had 1 use of the item.

In SBARINFO it displays darkened in inventory bar and has the value of 0 items.

This issue started occuring at least as early as GZDoom 3.2.5, and is still present on the 4.6.0.

How to quickly see the issue:

1. Create a simple inventory item i.e.
DECORATE
Code: Select allExpand view
Actor NewArtiHealth : ArtiHealth replaces ArtiHealth
{
+Inventory.KEEPDEPLETED
}

2. Launch Hexen IWAD along with this item
3. Summon one of the new items
4. Get damaged and use the item
User avatar
Virathas
 
Joined: 10 Aug 2017

Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests