Upgrade matrix you can read at a glance
- 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>
This commit is contained in:
40
Assets/Scripts/Core/DemoBot.Shop.cs
Normal file
40
Assets/Scripts/Core/DemoBot.Shop.cs
Normal file
@ -0,0 +1,40 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/Core/DemoBot.Shop.cs.meta
Normal file
2
Assets/Scripts/Core/DemoBot.Shop.cs.meta
Normal file
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8a69e95e36ced72458cec3d35add3642
|
||||
@ -3013,6 +3013,11 @@ namespace GrassCutter
|
||||
yield return Perf(int.Parse(perfSlot));
|
||||
yield break;
|
||||
}
|
||||
if (CommandLine.Has("-demoshop"))
|
||||
{
|
||||
yield return ShopDemo(int.TryParse(CommandLine.Get("-demoshop"), out int shopSlot) ? shopSlot : 0);
|
||||
yield break;
|
||||
}
|
||||
if (CommandLine.Has("-demoauto"))
|
||||
{
|
||||
yield return AutoDemo();
|
||||
|
||||
Reference in New Issue
Block a user