fix(pieces): placement ghost vanished off terrain for most stations
Eleven pieces set m_groundPiece. Player.UpdatePlacementGhost switches the ghost off outright and returns whenever the aim is not on a Heightmap, which vanilla means for hoe and cultivator pieces. Floors, rocks and a troll cave's mesh floor are not a Heightmap, so players saw no ghost at all there, and with either flag Valheim never shows the blue placement marker. Reported for the Trol War Totem. m_groundPiece is off everywhere now. The stations (War Totem, Cursed Body Pile, Dvergar Bank, Rune Barrel, Pack Trough, Skadi Golem, Bone Servants) drop m_groundOnly too and go on floors, foundations and in caves, like the Bone Pile since 1.5.8. The living pieces (Furling bushes, Sverm nest and Hive Market, Trenta Elder Root) keep m_groundOnly: terrain only, and the ghost shows red elsewhere.
This commit is contained in:
parent
b8661b78f3
commit
916ba5bd6f
11 changed files with 58 additions and 18 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue