The steamsaw ego pool includes all of the shield egos. However, no special_combat effects in shield egos work with steamsaws. This addon should fix that.
*************************************************************************************************
Original post below:
The steamsaw ego pool includes all of the shield egos. However, no special_combat effects in shield egos work with steamsaws. I'm thinking about throwing together an addon to address this.
Ideally, I'd make special_combat work with steamsaws... but given that this bug has been in the game for quite a while I'm guessing that's not a trivial task.
Failing that, I'd like to strip out special_combat egos, or just exclude shield egos altogether.
I figured that last would be easy, but either I'm doing it wrong or just creating an addon that overloads and has an overload/data/general/objects/egos/steamsaw.lua file that only loads the weapon egos doesn't cut it (steamsaws are still getting the shield egos).
Any pointers on how I can do any of the above?
Fixing steamsaw egos
Moderator: Moderator
Fixing steamsaw egos
Last edited by visage on Mon Feb 21, 2022 7:30 pm, edited 1 time in total.
Re: Fixing steamsaw egos
It might be fairly easy to do.
I'd put a superload wrapper around mod/interface/Combat:getObjectCombat() to return a table.merge() of combat and special_combat from the steamsaw.
I'd put a superload wrapper around mod/interface/Combat:getObjectCombat() to return a table.merge() of combat and special_combat from the steamsaw.
My feedback meter decays into coding. Give me feedback and I make mods.
Re: Fixing steamsaw egos
That does in fact work, thanks! I've got a proof-of-concept that does a naive merge of combat and special_combat when appropriate for steamsaws, and special_combat effects are manifesting.
In order to do a less-naive merge (such that, say, Crushing doesn't overwrite the base steamsaw damage value, or vice versa), it seems like it'd be clever to crib the code the game uses for applying egos to objects in the first place. Do you happen to know where that code is?
Re: Fixing steamsaw egos
I'm not sure about that one.
I suspect Resolvers are involved.
I suspect Resolvers are involved.
My feedback meter decays into coding. Give me feedback and I make mods.
Re: Fixing steamsaw egos
All-righty. It was easy enough to special-case the two keys that appear both in special_combat egos and in base steamsaws.
Re: Fixing steamsaw egos
The addon in question has been uploaded.