Demo build: 150 kg goal, end screen, separate AppId and store assets
GC_DEMO define (ProjectBuilder GC_DEMO=1 / -demo) builds GrassCutterDemo.exe for app 5668050 with its own product name, version 0.1-demo and no achievements. Purchases lock after shipping 150 kg; a goal label and a thanks/wishlist card follow. Menu gets a DEMO badge and wishlist button. Store texts (12 languages) and DEMO-badged capsules for the demo page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -16,7 +16,7 @@ namespace GrassCutter
|
||||
bool belt = d.id == PieceId.Belt;
|
||||
double price = belt ? GameDefs.BeltPrice(Vector3.Distance(at, to)) : d.price;
|
||||
bool fits = belt ? BuildRules.CanRun(at, to, out _) : BuildRules.CanPlace(d, at, rot, null, out _);
|
||||
if (d.company || !who || !who.Owns(ToolId.Hammer) || Money.Value < price || !fits) { DeniedRpc(sender); return; }
|
||||
if (d.company || !who || !who.Owns(ToolId.Hammer) || Money.Value < price || Demo.Over || !fits) { DeniedRpc(sender); return; }
|
||||
Money.Value -= price;
|
||||
ServerSpawnPiece(d.id, at, belt ? BuildRules.RunRotation(at, to) : rot, to);
|
||||
Save();
|
||||
|
||||
Reference in New Issue
Block a user