1
0

Prefabs can have per-piece per-placement weights.

Fixes #753.
Also upgraded NetherFortPrefabs to lates Gallery contents.
This commit is contained in:
madmaxoft
2014-04-17 17:31:29 +02:00
parent 35e847d2f5
commit be091800f8
5 changed files with 752 additions and 32 deletions

View File

@@ -258,6 +258,15 @@ cPieces cNetherFortGen::GetStartingPieces(void)
int cNetherFortGen::GetPieceWeight(const cPlacedPiece & a_PlacedPiece, const cPiece::cConnector & a_ExistingConnector, const cPiece & a_NewPiece)
{
return ((const cPrefab &)a_NewPiece).GetPieceWeight(a_PlacedPiece, a_ExistingConnector);
}
void cNetherFortGen::PiecePlaced(const cPiece & a_Piece)
{
UNUSED(a_Piece);