#W# Added FarmController to spawn farms. Auto harvest crops on walking over.
This commit is contained in:
parent
4a466009a0
commit
eb7d215ba3
4 changed files with 132 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue