-
Notifications
You must be signed in to change notification settings - Fork 88
Refactor/destroy genclosestammo cache class #1212
base: master
Are you sure you want to change the base?
Refactor/destroy genclosestammo cache class #1212
Conversation
…master Update dev branch to 1.1 master
Various tweaks and housekeeping.
…zhrocks11Dev Closing Zhrocks11Dev and Keeping Regular Dev up to date with Master
|
Hello! Thanks for working on it! Thanks, |
|
@mitasamodel It is not compiled yet. In fact, I am not sure it even compiles! This PR is very much WIP, it's not yet playable. My other PR #1209 makes an attempt to fix this issue and makes things better but not perfect. You can give that one a try and see if that one works as a crutch until this one is ready :) |
|
@MadaraUchiha yep, I have tried that one (#1209), but the issue was still there. I found a bit other workaround: to be able to reload auto-turrets the pawn should take ammo in the inventory. But as described N7Huntsman, sometimes weird things happen. Thanks for working on it! :) |
|
By the way, @zhrocks11 @N7Huntsman early thoughts on that logger class? I figured such a thing was good to have in general and I didn't find a similar utility. |
|
@MadaraUchiha C# stuff isn't my wheelhouse, I'm afraid, so I couldn't weigh-in. @NoImageAvailable may have an opinion one way or another. |
|
|
The correct C# pattern would be surrounding it with an |
|
@NoImageAvailable I had thought of using the compiler preprocessor statements, but that would mean 3 lines for each logging statement, and that's just too sad. I will look into the in-depth logging setting, thanks! |
40dd9c9 to
5aeba13
Compare
Templates for bug report, general discussion, and patch request.
Changing the CE 1.0 armorpenetration to armorpenetrationblunt using as a referente the Gun_Triple rucket and Gun_Doomsday Rocket armor pen values for the barrel
Adjusted the melee cooldown values to match the reference values.
Change ArmorPenetration to ArmorPenetration_Blunt for Heavy Charge Blaster, Charge Lance, Inferno Cannon and Minigun's melee attack with the barrel
…tches Update Defensive Machine Gun Turret Pack patches
…ed/master Merge tested and approved patches in master into dev, because I *am* the Senate.
Changes to a Postfix on DoDate(), similarly to FoodAlert. - Also fixes totally unplayable misalignment of label
Also introduce local for the xOffset from the original method.
bf63532 to
c751c96
Compare
…ed/refactor/move-wind-alert-to-postfix Change Wind alert from Transpiler to Postfix
About tweaks, death acidifier merc loadouts.
- Introduce CELogger class to log extra stuff in dev mode. -- It is recommended to use this class instead of RimWorld's own Log class. - Introduce the JobGiverUtils_Reload class -- Holds interesting job creation and ammo lookup logic. - Various small refactors
- Small refactors in CompAmmoUser and JobDriver_ReloadTurret.
- Mechanoids now reload turrets with the JobGiver_DefenderReloadTurret thinknode, patched into the Defend DutyDef. - Turrets now only order reloads directly for manned pawns (i.e. mortars)
- Ask for number of rounds missing to full, or the number of rounds in the found stack. Whichever is smaller.
Will now toss a more meaningful error when MakeReloadJob is called without checking for CanReload first.
c751c96 to
e8e9455
Compare
Additions
N/A
Changes
Refactors turret reload mechanics
Breaking Changes:
This behavior is consistent with vanilla refueling.
References
Todo: Open issue.
Reasoning
Removing the
GenClosestAmmoclass as suggested by maintainers on #1209.Alternatives
N/A
Testing
Check tests you have performed: