Skip to content
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

New property giving map maker the ability to allow non-air SBU units to continue to the main territory battle. #12808

Closed
wants to merge 34 commits into from

Conversation

WCSumpton
Copy link
Contributor

@WCSumpton WCSumpton commented Aug 1, 2024

I have created a new map property "Use Non-Air SBR Units In Normal Battle" that when set to true will allow these units to participate in the normal territory battle.

Sea units are still blocked from using "isStrategicBomber", so this has no effect on them. If this were to change, then they would also be allowed to join.

Because this is a new property, there should be no effect to existing maps.

Cheers...

checkAIPlayers added to RulesAttachment to allow for checking of AI controlled players.
Rename from isAIPlayers to isAI
Spacing
Adding RulesAttachmentTest to test isAI
Removed extra line from each file
This property will map makers to select if non-air SBR units will be allow to patriciate in a territory's normal battle.

This does not effect sea units as the "isStrategicBomber" option is still blocked for use. If this were unblocked then it would also effect them.
@WCSumpton WCSumpton changed the title New property to allow map maker the ability to allow non-air SBU units the ability to continue to the main territory battle. New property giving map maker the ability to allow non-air SBU units to continue to the main territory battle. Aug 1, 2024
@frigoref
Copy link
Member

frigoref commented Aug 1, 2024

@WCSumpton Just skimmed over it, is there any test for the new property? If not, would be good to create some concerning the new property.

@TheDog-GH
Copy link
Contributor

I will try this property out in 1941 GCD with Artillery. It also has uses for siege warfare prior to WW2.

@WCSumpton
Copy link
Contributor Author

Just skimmed over it, is there any test for the new property? If not, would be good to create some concerning the new property.

For me, creating the test may take some time, will look into it. Was extensively tested using GCD v1.170, as the new update v1.175 removed the "isStrategicBomber" code for Artillery.

Cheers...

dependents seems to be reference farther on, so was replaced with attackingSBR. Also units were getting marked as being in air battles so this was changed to only include air units.

Cheers...
hasResource will give mapmaker the ability to query resources
@WCSumpton
Copy link
Contributor Author

Closing due to conflicts

@WCSumpton WCSumpton closed this Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants