mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-14 16:04:38 +01:00
fix tiles not having branch ID
This commit is contained in:
@@ -766,7 +766,9 @@ func GenerateUdGuildMaps() ([]MapData, []MapBranch) {
|
|||||||
newBranchTile = getBranchTile(tiles, evictedTiles, currentBranchTile.ID)
|
newBranchTile = getBranchTile(tiles, evictedTiles, currentBranchTile.ID)
|
||||||
if newBranchTile == 0 {
|
if newBranchTile == 0 {
|
||||||
if currentBranchTile != mapTiles[j] {
|
if currentBranchTile != mapTiles[j] {
|
||||||
currentBranchTile.Type = 4
|
branchTiles[len(branchTiles)-1].Type = 4
|
||||||
|
branchTiles[len(branchTiles)-1].Unk1 = 1
|
||||||
|
branchTiles[len(branchTiles)-1].Unk2 = 2
|
||||||
// Make treasure more interesting
|
// Make treasure more interesting
|
||||||
mapBranches = append(mapBranches, MapBranch{
|
mapBranches = append(mapBranches, MapBranch{
|
||||||
MapIndex: uint32(i + 1),
|
MapIndex: uint32(i + 1),
|
||||||
@@ -780,9 +782,11 @@ func GenerateUdGuildMaps() ([]MapData, []MapBranch) {
|
|||||||
}
|
}
|
||||||
break
|
break
|
||||||
} else {
|
} else {
|
||||||
currentBranchTile.BranchID = newBranchTile
|
|
||||||
if currentBranchTile.ID == mapTiles[j].ID {
|
if currentBranchTile.ID == mapTiles[j].ID {
|
||||||
currentBranchTile.Type = 3
|
mapTiles[j].BranchID = newBranchTile
|
||||||
|
mapTiles[j].Type = 3
|
||||||
|
} else {
|
||||||
|
branchTiles[len(branchTiles)-1].NextID = newBranchTile
|
||||||
}
|
}
|
||||||
branchIndex++
|
branchIndex++
|
||||||
newTile := Tile{
|
newTile := Tile{
|
||||||
@@ -791,8 +795,8 @@ func GenerateUdGuildMaps() ([]MapData, []MapBranch) {
|
|||||||
BranchIndex: uint8(branchIndex),
|
BranchIndex: uint8(branchIndex),
|
||||||
Type: 0,
|
Type: 0,
|
||||||
PointsReq: 100,
|
PointsReq: 100,
|
||||||
Unk1: 1,
|
Unk1: 0,
|
||||||
Unk2: 1,
|
Unk2: 0,
|
||||||
}
|
}
|
||||||
branchTiles = append(branchTiles, newTile)
|
branchTiles = append(branchTiles, newTile)
|
||||||
for _, k := range getNeighbourTiles(tiles, currentBranchTile.ID) {
|
for _, k := range getNeighbourTiles(tiles, currentBranchTile.ID) {
|
||||||
|
|||||||
Reference in New Issue
Block a user