I tried to add effect to interoperability
Code: Select all
@@ -147,7 +147,8 @@ local api_functions = {
attributes = hunger_ng.attributes,
translator = hunger_ng.configuration.translator,
get_data = hunger_ng.functions.get_data,
- set_data = hunger_ng.functions.set_data
+ set_data = hunger_ng.functions.set_data,
+ effects = hunger_ng.effects,
}
}
It works, it can be used, but it is not satisfying.
Ideal wold be to be able to change
effects.heal.amount.
- =0 - no healing, event is satiation is ok
- <0 - negative value, decreases health, satiation has to be ignored
It could be even more complex, like according to satiation, the value could be different.