Closed MustaphaTR closed 5 years ago
I haven't noticed this before I go to sleep but I'll try to check this out ASAP.
Don't merge this yet. As i said on the PR on OpenRA repo, i messed something up while trying to do this with interfaces, i'll change this so it'll use interfaces.
You should use conditions instead of prerequsites IMO.
Production is done thru actor infos. Conditions won't work there.
Sucks. A lot, actually. This doesn't support stacking the same building for additional bonus without a bunch of complex yaml workarounds.
Then again, at this stage, the best solution I see would be to convert prereqs to booleanexpressions. but ofcourse that would be a horrible and nonsensical method of thinking... here.
Alright. I'll test this tonight. If it works as it should, I'll take it.
The code itself looks okay, so it'll be merged after the fixup.
Updated also removed the GCoP from the credits since it is no longer a part of the AS.
GJ. :+1:
Applies https://github.com/OpenRA/OpenRA/pull/15305 to here.
I have edited this to be a multiplier to be less hacky tho haven't tested much yet, so it better be tested first. I don't have much time left for today.