create saetor shrine blueprint
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
public int getBlueprintUUID() {
|
||||
return blueprintUUID;
|
||||
}
|
||||
|
||||
public void setBlueprintUUID(int id) {
|
||||
this.blueprintUUID = id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
|
||||
Reference in New Issue
Block a user