- Each tree sits centred under the Earth Uplink; links run square between rows and down the gaps between columns, never through a node or a name - Clear node states: gold is done, a green ring is buyable now, green tint is started, grey is not open yet; the selected node has a blue ring - Every node shows the price of its next level and pips for its levels - The detail panel lists every level with what it gives and what it costs; requirements turn green as they are met - Tabs show how much of each tree is bought - -demoshop [slot] shoots every tab Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 lines
1.5 KiB
C#
41 lines
1.5 KiB
C#
using System.Collections;
|
|
using UnityEngine;
|
|
|
|
namespace GrassCutter
|
|
{
|
|
public partial class DemoBot
|
|
{
|
|
/// <summary>
|
|
/// -demoshop [slot]: the upgrade matrix on a save (a fresh planet without one), every tab, with a node picked in each
|
|
/// and the detail panel showing it; then the same with a pile of money, so the affordable look shows too.
|
|
/// </summary>
|
|
IEnumerator ShopDemo(int slot)
|
|
{
|
|
if (slot > 0) SaveSlots.Current = slot - 1;
|
|
else TeamState.DeleteSave();
|
|
yield return new WaitForSeconds(2f);
|
|
NetSession.Instance.HostLocal();
|
|
while (!Me || !Ts) yield return null;
|
|
yield return new WaitForSeconds(3f);
|
|
Log($"perks {Ts.Installs} / {TeamState.TotalInstalls}, money {Ts.Money.Value:0}");
|
|
for (int pass = 0; pass < 2; pass++)
|
|
{
|
|
if (pass == 1) Ts.ServerSetMoney(Ts.Money.Value + 250000d);
|
|
UIRoot.I.OpenShop();
|
|
yield return new WaitForSeconds(1.2f);
|
|
var shop = UIRoot.I.Shop;
|
|
foreach (var tree in ShopScreen.TerminalTrees)
|
|
{
|
|
shop.SetTree(tree, false);
|
|
yield return new WaitForSeconds(0.6f);
|
|
yield return Shot($"shop{pass}_{(int)tree}_{tree}");
|
|
}
|
|
UIRoot.I.CloseTopModal();
|
|
yield return new WaitForSeconds(0.5f);
|
|
}
|
|
Log("shop done");
|
|
Application.Quit();
|
|
}
|
|
}
|
|
}
|