#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:
WarrentyExpired 2026-08-24 20:09:57 -04:00
parent dc5e0577fd
commit eea0f9defb
8 changed files with 246 additions and 80 deletions

View file

@ -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;
}
}
}