New issue
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
Refactor SupplyTruck/AcceptsSupplies to *Cash traits #13000
Conversation
Actually, i'm using Supply Truck logic on the D2K map i was working on which is currently on bleed, but will keep it on release when it happens. I wouldn't mind much if this won't effect the Next but Next + 1. I don't think i would update the map anyway when that happens. |
@MustaphaTR D2k currently needs the Mods.Cnc.dll anyway due to ProductionAirdrop, and I don't see that changing soon (not before Next+1 in any case). |
Alternatively, we could keep it in Common and rename the trait to |
Considering that these could be used for the YR Grinder even, I'd say it just needs a tag property. |
Yea, i keep forgetting that D2k read CnC dll. But Graion is right, this is the closet thing we have to grinder. So keeping it on common, renaming it and adding a Type: support for AcceptsSupplies and SupplyTruck so multipile types can be used (both actual Supply Trucks and Grinder for example). |
Updated as suggested. |
Ah, I forgot this doesn't have a stance check. May you add that as well? 👍 after it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Supplies" is still a mod-specific name (what's a supply?). Can you please change these to DeliversCash
and AcceptsDeliveredCash
or something similar?
Updated. Note: Removing |
Probably you should also rename the DonateSupplies activity as well. |
Adding 'Type' and 'Stances' support as well.
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 still stands.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
It's only used by our RA mod and no more likely to be used by any 3rd-party mod than any other RA-specific logic (less likely, in my opinion), so I think it can be moved to Mods.Cnc.Renamed to more generic
DeliversCash
/AcceptsDeliveredCash
and added Type/Stance tags instead.