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

[Highly Customized] Unit base normal and new placing grids #1478

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

CrimRecya
Copy link
Contributor

  • You can now set CheckUnitBaseNormal to true to use units to expand the construction scope of the base.
    • UnitBaseNormal controls whether our own buildings can be place around it like vanilla BaseNormal do.
    • UnitBaseForAllyBuilding controls whether ally buildings can be place around it like vanilla EligibileForAllyBuilding do.

In rulesmd.ini:

[General]
CheckUnitBaseNormal=false      ; boolean

[SOMEUNIT]                     ; UnitType
UnitBaseNormal=false           ; boolean
UnitBaseForAllyBuilding=false  ; boolean
  • This feature is highly compatible with ExpandBuildingPlace. If set DrawAdjacentBoundary to true, it will display the four corners of the Adjacent boundary. If set PlacementGrid.Expand to true, it will display the placing grids with place.shp and following corresponding frame number.
    • PlacementGrid.LandFrames controls the placing grids frames on non-water cell. The three numbers respectively represent "Some technos that can command departure have occupied this area", "This cell is actually beyond the scope, but there is still at least one cell inside the entire region" and "Here is no problem, everything is OK".
    • PlacementGrid.WaterFrames controls the placing grids frames on water cell. Each item corresponds to the same as above.

In ra2md.ini:

[Phobos]
DrawAdjacentBoundary=false       ; boolean

In rulesmd.ini:

[AudioVisual]
PlacementGrid.Expand=false       ; boolean
PlacementGrid.LandFrames=1,0,0   ; integer, zero-based frame index - have technos, near boundary, is normal
PlacementGrid.WaterFrames=1,0,0  ; integer, zero-based frame index - have technos, near boundary, is normal

Splits from #1335 .

Copy link

github-actions bot commented Dec 28, 2024

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

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.

1 participant