Skip to content

MEDIUM: Wildlife yieldMalus self-assignment never clears #28

Description

@TheCodingDad-TisonK

Severity: MEDIUM

File: src/utils/animalEvents.lua:259
Multiplayer: No
Fix Complexity: TRIVIAL
Confidence: 100% (Wizard-verified + source-verified)

Description

The onEnd handler contains s.yieldMalus = s.yieldMalus — a no-op self-assignment instead of clearing the value.

Impact

After wildlife_pest_invasion ends, player permanently loses 5%-25% field yield for rest of session.

Fix

Change to s.yieldMalus = 0 in onEnd.


Source: Consolidated Bug Review 2026-07-26, RWE-003

Metadata

Metadata

Labels

bugSomething isn't workinggameplayGameplay relatedready-for-devReady for developmentuser-repliedUser is awaiting response

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions