feat: new looks for the Race Menu Ward, Contract Bank and Bone Servant tables
Recolour and kitbash from vanilla parts, no new assets. PieceLook copies materials before tinting so vanilla pieces keep their colours. ModelBorrow gains activeOnly, which drops hidden snow, fire and broken meshes before a borrowed piece is measured.
This commit is contained in:
parent
cb29f54a28
commit
f3d3c0ebb5
5 changed files with 222 additions and 3 deletions
|
|
@ -76,6 +76,14 @@ namespace RacesOfValheim
|
|||
private const float PileHeight = 1.05f;
|
||||
private const float PileSize = 0.45f;
|
||||
|
||||
// The dressing, in the same unscaled table space as the pile. The pile owns the centre, so the
|
||||
// lantern takes the far end of the map half and the tankard the near edge of the writing half.
|
||||
private static readonly Color BankWoodTint = new Color(0.62f, 0.55f, 0.5f, 1f);
|
||||
private static readonly Vector3 LanternSpot = new Vector3(-1.75f, PileHeight, 0.55f);
|
||||
private const float LanternSize = 0.55f;
|
||||
private static readonly Vector3 TankardSpot = new Vector3(0.35f, PileHeight, -0.65f);
|
||||
private const float TankardSize = 0.2f;
|
||||
|
||||
public class Troop
|
||||
{
|
||||
public string Id;
|
||||
|
|
@ -276,6 +284,14 @@ namespace RacesOfValheim
|
|||
|
||||
prefab.transform.localScale = Vector3.one * TableScale;
|
||||
|
||||
// A counting table, not a map table: darker wood, a dvergr lantern at the far end and a
|
||||
// tankard by the ledger. Tinted BEFORE the props go on, or they would be darkened too.
|
||||
PieceLook.Tint(prefab.transform, BankWoodTint);
|
||||
ModelBorrow.Attach(prefab.transform, "BankLantern", "piece_dvergr_lantern",
|
||||
LanternSpot, Quaternion.identity, LanternSize, "Dvergar", activeOnly: true);
|
||||
ModelBorrow.Attach(prefab.transform, "BankTankard", "Tankard_dvergr",
|
||||
TankardSpot, Quaternion.identity, TankardSize, "Dvergar", activeOnly: true);
|
||||
|
||||
DvergarBancoBehaviour bank = prefab.AddComponent<DvergarBancoBehaviour>();
|
||||
|
||||
foreach (Switch existing in prefab.GetComponentsInChildren<Switch>(true))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue