|
|
|
@ -18,6 +18,7 @@ import engine.math.Vector3fImmutable;
@@ -18,6 +18,7 @@ import engine.math.Vector3fImmutable;
|
|
|
|
|
import engine.net.ByteBufferWriter; |
|
|
|
|
import engine.net.client.msg.ErrorPopupMsg; |
|
|
|
|
import engine.server.MBServerStatics; |
|
|
|
|
import org.joda.time.DateTime; |
|
|
|
|
import org.pmw.tinylog.Logger; |
|
|
|
|
|
|
|
|
|
import java.net.UnknownHostException; |
|
|
|
@ -129,6 +130,20 @@ public class Mine extends AbstractGameObject {
@@ -129,6 +130,20 @@ public class Mine extends AbstractGameObject {
|
|
|
|
|
this.openHour = rs.getInt("mineLiveHour"); |
|
|
|
|
this.openMinute = rs.getInt("mineLiveMinute"); |
|
|
|
|
this.capSize = rs.getInt("capSize"); |
|
|
|
|
|
|
|
|
|
//uncomment this for weekend 5s in lieu of 3s
|
|
|
|
|
//int loggedCapSize = rs.getInt("capSize");
|
|
|
|
|
//if(loggedCapSize == 3){
|
|
|
|
|
// int dayOfWeek = DateTime.now().dayOfWeek().get();
|
|
|
|
|
// if(dayOfWeek == 7 || dayOfWeek == 6 || dayOfWeek == 5){
|
|
|
|
|
// this.capSize = 5;
|
|
|
|
|
// }else{
|
|
|
|
|
// this.capSize = loggedCapSize;
|
|
|
|
|
// }
|
|
|
|
|
//}else{
|
|
|
|
|
// this.capSize = loggedCapSize;
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
this.liveTime = LocalDateTime.now().withHour(this.openHour).withMinute(this.openMinute); |
|
|
|
|
Building tower = BuildingManager.getBuildingFromCache(this.buildingID); |
|
|
|
|
if(tower != null){ |
|
|
|
|