feat: marble Bone Servant tables, bigger centred props, fix table hover name
The Smith's and Cook's Tables clone the black marble table: the cartography table's map is baked into its texture. Anvil or meal and a skull sit near the centre at the table's measured height. The bank loses its lantern and its tankard grows. The servant table hover localizes its title, which showed as a raw token once a servant stood there.
This commit is contained in:
parent
f3d3c0ebb5
commit
b3edb2aed1
3 changed files with 36 additions and 32 deletions
|
|
@ -77,12 +77,10 @@ namespace RacesOfValheim
|
|||
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.
|
||||
// tankard stands just clear of it, on the near side.
|
||||
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;
|
||||
private static readonly Vector3 TankardSpot = new Vector3(0.45f, PileHeight, -0.25f);
|
||||
private const float TankardSize = 0.38f;
|
||||
|
||||
public class Troop
|
||||
{
|
||||
|
|
@ -284,11 +282,9 @@ 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.
|
||||
// A counting table, not a map table: darker wood and a dvergr tankard beside the coin.
|
||||
// Tinted BEFORE the tankard goes on, or it 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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue