[Fixed] Items with KEEPDEPLETED flag are not darkened in inventory

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

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

Re: Items with KEEPDEPLETED flag are not darkened in invento

Postby Graf Zahl » Tue Aug 10, 2021 10:46 am

fixed
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 2 guests