Merge branch 'fix-placement-ghost'
This commit is contained in:
commit
ea1efef56e
11 changed files with 58 additions and 18 deletions
|
|
@ -233,8 +233,12 @@ namespace RacesOfValheim
|
|||
piece.m_resources = new Piece.Requirement[0];
|
||||
piece.m_name = displayName;
|
||||
piece.m_canBeRemoved = true;
|
||||
piece.m_groundPiece = true;
|
||||
piece.m_groundOnly = true;
|
||||
// Neither flag, like the Bone Pile. m_groundPiece made Player.UpdatePlacementGhost switch
|
||||
// the ghost off outright wherever the aim was not terrain - floors, rocks, a troll cave's
|
||||
// mesh floor - so players saw no ghost at all and could not tell why. A station belongs
|
||||
// in a house or a cave as much as outside.
|
||||
piece.m_groundPiece = false;
|
||||
piece.m_groundOnly = false;
|
||||
piece.m_icon = icon;
|
||||
|
||||
Piece template = PrefabManager.Cache.GetPrefab<Piece>("piece_workbench");
|
||||
|
|
|
|||
|
|
@ -251,8 +251,12 @@ namespace RacesOfValheim
|
|||
piece.m_resources = new Piece.Requirement[0];
|
||||
piece.m_name = PieceDisplayName;
|
||||
piece.m_canBeRemoved = true;
|
||||
piece.m_groundPiece = true;
|
||||
piece.m_groundOnly = true;
|
||||
// Neither flag, like the Bone Pile. m_groundPiece made Player.UpdatePlacementGhost switch
|
||||
// the ghost off outright wherever the aim was not terrain - floors, rocks, a troll cave's
|
||||
// mesh floor - so players saw no ghost at all and could not tell why. A station belongs
|
||||
// in a house or a cave as much as outside.
|
||||
piece.m_groundPiece = false;
|
||||
piece.m_groundOnly = false;
|
||||
piece.m_icon = BorrowIcon(TrophyDraugr);
|
||||
|
||||
// Learned on the Furling's bushes: a Piece added to world scenery is born with no icon
|
||||
|
|
|
|||
|
|
@ -335,8 +335,12 @@ namespace RacesOfValheim
|
|||
piece.m_resources = new Piece.Requirement[0];
|
||||
piece.m_name = PieceDisplayName;
|
||||
piece.m_canBeRemoved = true;
|
||||
piece.m_groundPiece = true;
|
||||
piece.m_groundOnly = true;
|
||||
// Neither flag, like the Bone Pile. m_groundPiece made Player.UpdatePlacementGhost switch
|
||||
// the ghost off outright wherever the aim was not terrain - floors, rocks, a troll cave's
|
||||
// mesh floor - so players saw no ghost at all and could not tell why. A station belongs
|
||||
// in a house or a cave as much as outside.
|
||||
piece.m_groundPiece = false;
|
||||
piece.m_groundOnly = false;
|
||||
piece.m_icon = BorrowIcon("TrophyDvergr");
|
||||
|
||||
Piece template = PrefabManager.Cache.GetPrefab<Piece>("piece_workbench");
|
||||
|
|
|
|||
|
|
@ -90,8 +90,12 @@ namespace RacesOfValheim
|
|||
piece.m_resources = new Piece.Requirement[0];
|
||||
piece.m_name = PieceDisplayName;
|
||||
piece.m_canBeRemoved = true;
|
||||
piece.m_groundPiece = true;
|
||||
piece.m_groundOnly = true;
|
||||
// Neither flag, like the Bone Pile. m_groundPiece made Player.UpdatePlacementGhost switch
|
||||
// the ghost off outright wherever the aim was not terrain - floors, rocks, a troll cave's
|
||||
// mesh floor - so players saw no ghost at all and could not tell why. A station belongs
|
||||
// in a house or a cave as much as outside.
|
||||
piece.m_groundPiece = false;
|
||||
piece.m_groundOnly = false;
|
||||
piece.m_icon = BorrowIcon("MeadHealthMinor") ?? BorrowIcon("TrophyDvergr");
|
||||
|
||||
Piece template = PrefabManager.Cache.GetPrefab<Piece>("piece_workbench");
|
||||
|
|
|
|||
|
|
@ -326,8 +326,12 @@ namespace RacesOfValheim
|
|||
piece.m_resources = new Piece.Requirement[0];
|
||||
piece.m_name = PieceDisplayName;
|
||||
piece.m_canBeRemoved = true;
|
||||
piece.m_groundPiece = true;
|
||||
piece.m_groundOnly = true;
|
||||
// Neither flag, like the Bone Pile. m_groundPiece made Player.UpdatePlacementGhost switch
|
||||
// the ghost off outright wherever the aim was not terrain - floors, rocks, a troll cave's
|
||||
// mesh floor - so players saw no ghost at all and could not tell why. A station belongs
|
||||
// in a house or a cave as much as outside.
|
||||
piece.m_groundPiece = false;
|
||||
piece.m_groundOnly = false;
|
||||
piece.m_icon = BorrowIcon("TrophyFenring");
|
||||
|
||||
Piece template = PrefabManager.Cache.GetPrefab<Piece>("piece_workbench");
|
||||
|
|
|
|||
|
|
@ -381,7 +381,10 @@ namespace RacesOfValheim
|
|||
piece.m_craftingStation = null;
|
||||
piece.m_resources = new Piece.Requirement[0];
|
||||
piece.m_canBeRemoved = true;
|
||||
piece.m_groundPiece = true;
|
||||
// Terrain only, as a living thing should be - but through m_groundOnly alone, which shows
|
||||
// the ghost red off the terrain. m_groundPiece switched the ghost off outright there
|
||||
// (Player.UpdatePlacementGhost), and players saw nothing at all.
|
||||
piece.m_groundPiece = false;
|
||||
piece.m_groundOnly = true;
|
||||
piece.m_cultivatedGroundOnly = false; // a bush of rocks does not want tilled soil
|
||||
piece.m_icon = BorrowIcon(berry.YieldPrefab);
|
||||
|
|
|
|||
|
|
@ -264,8 +264,12 @@ namespace RacesOfValheim
|
|||
piece.m_resources = new Piece.Requirement[0];
|
||||
piece.m_name = DisplayName;
|
||||
piece.m_canBeRemoved = true;
|
||||
piece.m_groundPiece = true;
|
||||
piece.m_groundOnly = true;
|
||||
// Neither flag, like the Bone Pile. m_groundPiece made Player.UpdatePlacementGhost switch
|
||||
// the ghost off outright wherever the aim was not terrain - floors, rocks, a troll cave's
|
||||
// mesh floor - so players saw no ghost at all and could not tell why. A station belongs
|
||||
// in a house or a cave as much as outside.
|
||||
piece.m_groundPiece = false;
|
||||
piece.m_groundOnly = false;
|
||||
piece.m_icon = BorrowIcon(CrystalItem);
|
||||
|
||||
PieceManager.Instance.AddPiece(new CustomPiece(prefab, fixReference: false, new PieceConfig
|
||||
|
|
|
|||
|
|
@ -96,7 +96,10 @@ namespace RacesOfValheim
|
|||
Piece piece = prefab.GetComponent<Piece>() ?? prefab.AddComponent<Piece>();
|
||||
piece.m_name = DisplayName;
|
||||
piece.m_description = "$rov_piece_sverm_broodmound_desc";
|
||||
piece.m_groundPiece = true;
|
||||
// Terrain only, as a living thing should be - but through m_groundOnly alone, which shows
|
||||
// the ghost red off the terrain. m_groundPiece switched the ghost off outright there
|
||||
// (Player.UpdatePlacementGhost), and players saw nothing at all.
|
||||
piece.m_groundPiece = false;
|
||||
piece.m_groundOnly = true;
|
||||
piece.m_cultivatedGroundOnly = false;
|
||||
piece.m_canBeRemoved = true;
|
||||
|
|
|
|||
|
|
@ -324,7 +324,10 @@ namespace RacesOfValheim
|
|||
piece.m_resources = new Piece.Requirement[0];
|
||||
piece.m_name = DisplayName;
|
||||
piece.m_description = "$rov_piece_sverm_hivemarket_desc";
|
||||
piece.m_groundPiece = true;
|
||||
// Terrain only, as a living thing should be - but through m_groundOnly alone, which shows
|
||||
// the ghost red off the terrain. m_groundPiece switched the ghost off outright there
|
||||
// (Player.UpdatePlacementGhost), and players saw nothing at all.
|
||||
piece.m_groundPiece = false;
|
||||
piece.m_groundOnly = true;
|
||||
piece.m_canBeRemoved = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -83,7 +83,10 @@ namespace RacesOfValheim
|
|||
piece.m_resources = new Piece.Requirement[0];
|
||||
piece.m_name = TrentaConfig.ElderRootDisplayName;
|
||||
piece.m_canBeRemoved = true;
|
||||
piece.m_groundPiece = true;
|
||||
// Terrain only, as a living thing should be - but through m_groundOnly alone, which shows
|
||||
// the ghost red off the terrain. m_groundPiece switched the ghost off outright there
|
||||
// (Player.UpdatePlacementGhost), and players saw nothing at all.
|
||||
piece.m_groundPiece = false;
|
||||
piece.m_groundOnly = true;
|
||||
piece.m_icon = icon;
|
||||
|
||||
|
|
|
|||
|
|
@ -303,8 +303,12 @@ namespace RacesOfValheim
|
|||
piece.m_resources = new Piece.Requirement[0];
|
||||
piece.m_name = PieceDisplayName;
|
||||
piece.m_canBeRemoved = true;
|
||||
piece.m_groundPiece = true;
|
||||
piece.m_groundOnly = true;
|
||||
// Neither flag, like the Bone Pile. m_groundPiece made Player.UpdatePlacementGhost switch
|
||||
// the ghost off outright wherever the aim was not terrain - floors, rocks, a troll cave's
|
||||
// mesh floor - so players saw no ghost at all and could not tell why. A station belongs
|
||||
// in a house or a cave as much as outside.
|
||||
piece.m_groundPiece = false;
|
||||
piece.m_groundOnly = false;
|
||||
piece.m_icon = BorrowIcon(TrollHead);
|
||||
|
||||
Piece template = PrefabManager.Cache.GetPrefab<Piece>("piece_workbench");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue