Page MenuHomeFeedback Tracker

[1.22.156656] Can't override Edible_Base::ReplaceEdibleWithNew
Assigned, UrgentPublic

Description

For some reason, I am unable to override the Edible_Base::ReplaceEdibleWithNew method.
I looked for a way to track when a player opens a can before the old item is replaced with the opened version but I was unable to override this specific method.

Details

Severity
Block
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

Minimal example code to reproduce the issue (4_World\Entities\ItemBase\Edible_Base.c):

modded class Edible_Base
{
	override void ReplaceEdibleWithNew( string typeName )
	{
		Print(ToString() + "::ReplaceEdibleWithNew - Type: " + GetType() + " | Replace with: " + typeName);

		super.ReplaceEdibleWithNew(typeName);
	}
};

Event Timeline

Geez changed the task status from New to Assigned.Sep 20 2023, 1:45 PM