#W# Added House limit to Settings.cs. Statichouses can now be odd shapes the statichouse.cfg can take more that 1 set of xy coords.
This commit is contained in:
parent
dc5e0577fd
commit
eea0f9defb
8 changed files with 246 additions and 80 deletions
|
|
@ -122,5 +122,18 @@ namespace Server
|
|||
}
|
||||
return Settings.S_HarvestRange;
|
||||
}
|
||||
|
||||
public static int HousesPerAccount()
|
||||
{
|
||||
if ( Settings.S_HousesPerAccount == 0 )
|
||||
{
|
||||
Settings.S_HousesPerAccount = 1;
|
||||
}
|
||||
else if ( Settings.S_HousesPerAccount < 0 )
|
||||
{
|
||||
Settings.S_HousesPerAccount = -1;
|
||||
}
|
||||
return Settings.S_HousesPerAccount;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue