Skip to content

Implement country-defined crew#2301

Open
Sovietianqi wants to merge 3 commits into
Phobos-developers:developfrom
Sovietianqi:develop
Open

Implement country-defined crew#2301
Sovietianqi wants to merge 3 commits into
Phobos-developers:developfrom
Sovietianqi:develop

Conversation

@Sovietianqi

Copy link
Copy Markdown
Contributor

Now you can specify the crew for each country by adding Crew=infantry type under the corresponding [country] section.
For example:

[CountryName]
Crew=Infantry

This allows you to define which infantry type serves as the crew for that country.

@phoboscn-bot

Copy link
Copy Markdown

To Chinese users:
This pull request has been mentioned on Phobos CN. There might be relevant details there:

致中文用户:
此拉取请求已在 Phobos CN 上被提及。那里可能有相关详细信息:

https://www.phoboscn.top/t/topic/670/7

@github-actions

Copy link
Copy Markdown

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.

@TaranDahl TaranDahl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs needed. You can ask your agent to generate it.

if (!pHouse)
return 0;

auto pHouseTypeExt = HouseTypeExt::ExtMap.Find(pHouse->Type);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Find func is now deprecated.

if (pHouseTypeExt && pHouseTypeExt->Crew.isset())
{
R->EAX(pHouseTypeExt->Crew.Get());
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect Nullable template usage.

Comment on lines +41 to +48
GET(TechnoClass*, pThis, ECX);

if (!pThis)
return 0;

HouseClass* pHouse = pThis->Owner;
if (!pHouse)
return 0;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant checks.

@phoboscn-bot

Copy link
Copy Markdown

To Chinese users:
This pull request has been mentioned on Phobos CN. There might be relevant details there:

致中文用户:
此拉取请求已在 Phobos CN 上被提及。那里可能有相关详细信息:

https://www.phoboscn.top/t/topic/672/1

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