Regeneration: Difference between revisions

487 bytes added ,  15:54, 3 December 2021
add logic for effect determination
m (clarification)
(add logic for effect determination)
Line 221: Line 221:


== Effects affected ==
== Effects affected ==
A non-exhaustive list of effects that can be removed by regeneration. These effects are only healed if they are applied to the creature that has regeneration, not their equipment. This includes natural equipment that is technically part of a creature's body, such as {{Favilink|Horns}}.
The following effects can be removed by regeneration. These effects are only healed if they are applied to the creature that has regeneration, not their equipment. This includes natural equipment that is technically part of a creature's body, such as {{Favilink|Horns}}. The specific criteria for which effects can be removed by Regeneration are based on effect type as follows:{{Code Reference|class=GameObject|namespace=XRL.World|method=FireEvent|case="Regenera"}}
* Must be at least one of the following effect types: ''metabolic'', ''respiratory'', ''circulatory'', ''structural'', or ''neurological''
* Must be both of the following effect types: ''negative'' and ''removable''
* Must also be a ''minor'' effect unless Regeneration level is greater than or equal to 5
 
=== Regen < 5 ===
=== Regen < 5 ===
{{#cargo_query:table=Effects
{{#cargo_query:table=Effects