Skip to content

Commit

Permalink
判断我能不能造
Browse files Browse the repository at this point in the history
  • Loading branch information
CrimRecya committed Feb 6, 2025
1 parent b335afa commit fc23b70
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Ext/House/Body.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,11 @@ bool HouseExt::CheckOwnerBitfieldForCurrentPlayer(TechnoTypeClass* pType)
{
const auto pScenarioExt = ScenarioExt::Global();
DWORD baseBits = TechnoTypeExt::ExtMap.Find(pType)->Cameo_RequiredHouses & pType->GetOwners();
baseBits &= (1u << HouseClass::CurrentPlayer->Type->FindParentCountryIndex());

if (!baseBits)
return false;

bool result = false;

switch (pType->WhatAmI())
Expand Down

0 comments on commit fc23b70

Please sign in to comment.