Browse Source

create saetor shrine blueprint

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
dae20d5591
  1. 8
      src/engine/db/handlers/dbBlueprintHandler.java
  2. 3
      src/engine/net/client/handlers/PlaceAssetMsgHandler.java
  3. 3
      src/engine/net/client/msg/PlaceAssetMsg.java
  4. 12
      src/engine/objects/Blueprint.java

8
src/engine/db/handlers/dbBlueprintHandler.java

@ -73,6 +73,14 @@ public class dbBlueprintHandler extends dbHandlerBase { @@ -73,6 +73,14 @@ public class dbBlueprintHandler extends dbHandlerBase {
Blueprint._meshLookup.putIfAbsent(thisBlueprint.getMeshForRank(3), thisBlueprint);
Blueprint._meshLookup.putIfAbsent(thisBlueprint.getMeshForRank(7), thisBlueprint);
if(thisBlueprint.getName().contains("Vampire Shrine")){
Blueprint saetorShrine = new Blueprint(rs);
saetorShrine.setBlueprintUUID(1720000);
saetorShrine.rank1UUID = 1720000;
saetorShrine.rank3UUID = 1720000;
saetorShrine.rank7UUID = 1720000;
}
}
} catch (SQLException e) {

3
src/engine/net/client/handlers/PlaceAssetMsgHandler.java

@ -412,6 +412,9 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { @@ -412,6 +412,9 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
break;
if (!playerCharacter.getCharItemManager().doesCharOwnThisItem(contract.getObjectUUID()))
break;
if(contract.getItemBaseID() == 1035){//saetor shrine override
msg.getFirstPlacementInfo().setBlueprintUUID(1720000);
}
buildingCreated = placeShrine(playerCharacter, origin, msg);
break;
case BARRACK:

3
src/engine/net/client/msg/PlaceAssetMsg.java

@ -601,6 +601,9 @@ public class PlaceAssetMsg extends ClientNetMsg { @@ -601,6 +601,9 @@ public class PlaceAssetMsg extends ClientNetMsg {
public int getBlueprintUUID() {
return this.blueprintUUID;
}
public void setBlueprintUUID(int id) {
this.blueprintUUID = id;
}
public Vector3fImmutable getLoc() {
return this.loc;

12
src/engine/objects/Blueprint.java

@ -30,15 +30,15 @@ public class Blueprint { @@ -30,15 +30,15 @@ public class Blueprint {
public static HashMap<Integer, Blueprint> _meshLookup = new HashMap<>();
private static HashMap<Integer, Blueprint> _blueprints = new HashMap<>();
private static HashMap<Integer, Integer> _doorNumbers = new HashMap<>();
private final int blueprintUUID;
private int blueprintUUID;
private final String name;
private final BuildingGroup buildingGroup;
private final int icon;
private final int maxRank;
private final int maxSlots;
private final int rank1UUID;
private final int rank3UUID;
private final int rank7UUID;
public int rank1UUID;
public int rank3UUID;
public int rank7UUID;
private final int destroyedUUID;
private Blueprint() {
@ -583,7 +583,9 @@ public class Blueprint { @@ -583,7 +583,9 @@ public class Blueprint {
public int getBlueprintUUID() {
return blueprintUUID;
}
public void setBlueprintUUID(int id) {
this.blueprintUUID = id;
}
@Override
public boolean equals(Object object) {

Loading…
Cancel
Save