Deekay

Deekay 0.2.30

This is for the coming Rust update. Do not update prior to the game update
When upkeep is enabled, check the remaining upkeep time on decay entities when determining whether the plugin should apply decay (fixes building parts decaying when there are resources for them but not others in the tc)
  • Like
Reactions: andyk
Null check entity shortprefabname
Initialize 1 decay manager per frame on startup
Non-decayable entities still check for building privilege
Hierarchy name fix
Fixed typo that was adding a decay manager to TC's when finding entities
  • Like
Reactions: MalS
Replaced timers with invokes
Force update decay rates on entire base when tool cupboard has been destroyed + a random delay to prevent timer stacking
  • Like
Reactions: MalS
Added config option to all entities to have upkeep override the inside privilege decay as long as that object is protected by resources in the tool cupboard, when the object is no longer protected the inside privilege decay rates will kick in
Fix for recently exposed field by Oxide
Fix for Rust update
  • Like
Reactions: MalS and Rocky
This update will wipe your existing config!
Reworked the config to:
- Clean up the order of config entries to make it easier to manage
- Be more descriptive of what the options do
- Use entity short names instead of full resource paths
- Damage rates are now actual percentages not fractional (0.1 used to equal 10%, now its just 10 equals 10%)

Changed decay manager initialization to spread out the time that entity decay happens to improve performance
Changed privilege detection for building blocks to prevent unnecessary sphere casts to improve performance
Fixed issue with dk.setall not working correctly

Thanks to @Ryan for testing