Bug: Perk 'Change of Plan' fails to re-validate item requirements after 'Dramaturgy' triggers inside locker
Bug #657
Perk 'Change of Plan' fails to re-validate item requirements after 'Dramaturgy' triggers inside locker
| Status: | Open |
| Priority: |
Medium |
| Added by: |
|
| Assigned to: |
Unassigned
|
| Due date: | |
| Reported for: | |
| Actual Result: |
Perk 'Change of Plan' only checks for the "Toolbox" requirement upon locker entry. If the item is changed to a non-toolbox item via Perk 'Dramaturgy' while already inside the locker, the 'Change of Plan' activation remains available, allowing players to replace Maps, Keys, or Flashlights with a Medkit.
|
| Expected Result: |
The activation requirements for Perk 'Change of Plan' should be checked dynamically. If the held item is no longer a Toolbox, the ability to activate 'Change of Plan' should be disabled immediately.
|
| Severity: |
Minor
|
| Reproducibility: |
Always
|
| Platform: |
Steam
|
| Additional Notes & Comments: |
Implement a two-point check (on locker entry AND on perk activation). This prevents 'Dramaturgy' from bypassing the requirement while remaining more resource-efficient than constant polling.
|
Steps to Reproduce
- Equip Perk 'Dramaturgy' and Perk 'Change of Plan' and bring any Toolbox.
- Stand in front of a locker and activate 'Dramaturgy'.
- Immediately fast-enter the locker before the 'Dramaturgy' item-generation effect triggers.
- The Toolbox will be dropped outside the locker as 'Dramaturgy' generates a new random item (e.g., a Key or Map).
- While inside the locker holding the new non-toolbox item, observe that the prompt for 'Change of Plan' is still active.
- Press the Active Ability button to successfully swap the random item for a Medkit.
Explanation
The perk "Change of Plan" appears to only validate the "Hold a Toolbox" requirement at the moment of locker entry. Because "Dramaturgy" has a delayed item-generation effect, a player can enter the locker while holding a Toolbox (satisfying the initial check) and then have that item replaced while the locker interaction is already in progress.
Since the perk does not perform a secondary check once the player is inside the locker, it allows "Change of Plan" to consume and replace items it shouldn't, such as Keys or Maps generated by "Dramaturgy". This allows players to bypass the intended item-type restriction of the perk.