We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MoteMaker becomes FleckMaker.
Here are my modifications to MapComponent_Durabilty.cs:
public override void MapComponentTick() { foreach (KeyValuePair<CompBreakdownable, float> _dur in _durabilities) { if (comp?.parent?.Spawned ?? false) { var parentDrawPos = comp.parent.DrawPos; if (durability < .5 && (tick + comp.GetHashCode()) % _moteIntervalRequiresRepair == 0) { var scale = (1f - durability) * 1 / 2f; FleckMaker.ThrowSmoke(parentDrawPos, map, scale); } if (durability < .25 && (tick + comp.GetHashCode()) % _moteIntervalRequiresCriticalRepair == 0) { FleckMaker.ThrowMicroSparks(parentDrawPos, map); } } } }
The mod now works fine on my PC.
The text was updated successfully, but these errors were encountered:
I have made a compiled version available to just drop into your RimWorld mods folder: https://mega.nz/file/WGQBVK4D#iG_GgD06bGIanTxMSoBtmwcZjXV9qXgqJ6oW6yuONdc
Sorry, something went wrong.
Tried it in my game and it seems to work fine. Thanks!
No branches or pull requests
MoteMaker becomes FleckMaker.
Here are my modifications to MapComponent_Durabilty.cs:
The mod now works fine on my PC.
The text was updated successfully, but these errors were encountered: