Project Zomboid

Project Zomboid

[B41] More Simple Traits (MST)
This topic has been locked
GuiriGuy 16 Nov, 2022 @ 3:16pm
Incompatibilty
Hi there! I'm the modder of Fitness Is A Lifestyle, and doing a play run I added your mod, but realized that it directly modifies the ISFitnessAction:exeLooped().

So I was looking into maybe 2 things, add on my side a compatibility to even adapt your given xp based on the traits, to play along mine at the same time to comply with yours and not make mine useless hahaha.

The other idea to make it compatible with mine and any other... Do you think if you make a request to the Timed action instead of directly modifying it would make both of them work?

like so:
require "TimedAction/ISFitnessAction"

local default_exeLooped = ISFitnessAction.exeLooped

function ISFitnessAction:exeLooped()
//code here
default_exeLooped(self)
end