Class CorpseDecaySystem
Cuts a corpse's decay short the first tick it is found empty, to the NPC's EmptyCorpseDecayDuration (shortened, never lengthened), and drops corpses whose NPC has gone or come back. Runs before FishMMO.Core.LifetimeSystem, so an empty corpse whose new end has passed goes in the same tick.
public sealed class CorpseDecaySystem : GameSystem
- Inheritance
-
GameSystemCorpseDecaySystem
- Inherited Members
-
GameSystem.NameGameSystem.OnAdded(World)
Remarks
Checked here on the tick, not where loot is taken: every way a corpse empties (an item, the currency, everything, a roll that produced nothing, never lootable at all) is covered by asking.
Properties
Order
Position within its phase; lower runs first.
public override int Order { get; }
Property Value
Phase
When in the tick it runs.
public override SystemPhase Phase { get; }
Property Value
- SystemPhase
Methods
Update(World, in TickContext)
Does this tick's work.
public override void Update(World world, in TickContext tick)
Parameters
worldWorldtickTickContext