Files
grass-cutters/Assets/Scripts/Gameplay/Binder.cs
NiemandKG d1c3761e58 Grass Cutters Together: the project as of moon-sweepers f3666f0
A clean start for the shared repository: the Unity project (Assets, Packages, ProjectSettings), ArtSource, Docs and
Tools as they stood at f3666f0 in the old local repository, with its generated prefabs and scene brought up to date.
Images, audio, models and binaries go through Git LFS (.gitattributes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 18:44:40 +06:00

20 lines
734 B
C#

using System.Collections.Generic;
using UnityEngine;
namespace GrassCutter
{
/// <summary>E hands it what's in your tool; it ties that into bundles and sends them down the belt.</summary>
public class Binder : SiloPiece
{
public override string Prompt => Silo.Value >= 1f ? Loc.F("Binder: hand in your grass ({0} still to tie)", GameDefs.Kilos(Silo.Value)) : Loc.T("Binder: hand in your grass");
public override bool CanInteract => PlayerAgent.Local && PlayerAgent.Local.Tank.Value >= 0.005f;
public override void Interact() => PlayerAgent.Local?.Tools.Feed(this);
public override void Ports(List<Port> into)
{
into.Add(BeltNet.Front(transform));
}
}
}