#W# Added FarmController to spawn farms. Auto harvest crops on walking over.

This commit is contained in:
WarrentyExpired 2026-08-18 18:53:37 -04:00
parent 4a466009a0
commit eb7d215ba3
4 changed files with 132 additions and 3 deletions

View file

@ -101,5 +101,26 @@ namespace Server
return gold;
}
public static double FarmSpawnTimer()
{
if ( Settings.S_FarmSpawnTimer < 1.0 )
{
Settings.S_FarmSpawnTimer = 1.0;
}
return Settings.S_FarmSpawnTimer;
}
public static int HarvestRange()
{
if ( Settings.S_HarvestRange > 3 )
{
Settings.S_HarvestRange = 3;
}
else if ( Settings.S_HarvestRange < 1 )
{
Settings.S_HarvestRange = 1;
}
return Settings.S_HarvestRange;
}
}
}