Skip to content

Commit

Permalink
Added building sites to some of the legacy quest maps
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrettin committed Dec 23, 2021
1 parent 9d194d3 commit 568500e
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion maps/nidavellir/brown-hills.sms
Original file line number Diff line number Diff line change
Expand Up @@ -255,5 +255,6 @@ CreateCritters()

CreateRoamingFog((CMap:get():get_info().MapWidth * CMap:get():get_info().MapHeight) / 4096)

CreateNeutralBuildings("unit-tree-stump", (CMap:get():get_info().MapWidth * CMap:get():get_info().MapHeight) / 4096, 0, CMap:get():get_info().MapWidth - 2, 0, CMap:get():get_info().MapHeight - 2, false)
CreateNeutralBuildings("unit_building_site", (CMap:get():get_info().MapWidth * CMap:get():get_info().MapHeight) / 1024, 0, CMap:get():get_info().MapWidth - 3, 0, CMap:get():get_info().MapHeight - 3, false)

CreateNeutralBuildings("unit-tree-stump", (CMap:get():get_info().MapWidth * CMap:get():get_info().MapHeight) / 4096, 0, CMap:get():get_info().MapWidth - 2, 0, CMap:get():get_info().MapHeight - 2, false)
2 changes: 2 additions & 0 deletions maps/nidavellir/caverns-of-chaincolt.sms
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,6 @@ if (GrandStrategy and GrandStrategyEventMap) then
end
end

CreateNeutralBuildings("unit_building_site", (CMap:get():get_info().MapWidth * CMap:get():get_info().MapHeight) / 1024, 0, CMap:get():get_info().MapWidth - 3, 0, CMap:get():get_info().MapHeight - 3, false)

CreateCritters({NoMightyCreeps = true, NoFlyingCreeps = true})
2 changes: 2 additions & 0 deletions maps/nidavellir/caverns-of-flame.sms
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ if not (GrandStrategy) then
SetDiplomacy(5, "enemy", 1)
end

CreateNeutralBuildings("unit_building_site", (CMap:get():get_info().MapWidth * CMap:get():get_info().MapHeight) / 1024, 0, CMap:get():get_info().MapWidth - 3, 0, CMap:get():get_info().MapHeight - 3, false)

CreateNeutralBuildings("unit-volcanic-crater", 16, 0, CMap:get():get_info().MapWidth - 2, 0, CMap:get():get_info().MapHeight - 2, false) -- to make the map seem more volcanic until lava tiles are implemented

CreateNeutralBuildings("unit-hole", (CMap:get():get_info().MapWidth * CMap:get():get_info().MapHeight) / 4096, 0, CMap:get():get_info().MapWidth - 2, 0, CMap:get():get_info().MapHeight - 2, false)
Expand Down
2 changes: 2 additions & 0 deletions maps/nidavellir/chaincolt-foothills.sms
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ if (GetCurrentQuest() == "a-bargain-is-struck") then
arg.NoMightyCreeps = true
end

CreateNeutralBuildings("unit_building_site", (CMap:get():get_info().MapWidth * CMap:get():get_info().MapHeight) / 1024, 0, CMap:get():get_info().MapWidth - 3, 0, CMap:get():get_info().MapHeight - 3, false)

CreateCritters(arg)

CreateRoamingFog((CMap:get():get_info().MapWidth * CMap:get():get_info().MapHeight) / 4096)
2 changes: 2 additions & 0 deletions maps/nidavellir/eastern-mines.sms
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,6 @@ end

CreateNeutralBuildings("unit-hole", (CMap:get():get_info().MapWidth * CMap:get():get_info().MapHeight) / 4096, 0, CMap:get():get_info().MapWidth - 2, 0, CMap:get():get_info().MapHeight - 2, false)

CreateNeutralBuildings("unit_building_site", (CMap:get():get_info().MapWidth * CMap:get():get_info().MapHeight) / 1024, 0, CMap:get():get_info().MapWidth - 3, 0, CMap:get():get_info().MapHeight - 3, false)

CreateCritters()
2 changes: 2 additions & 0 deletions maps/nidavellir/northern-wastelands.sms
Original file line number Diff line number Diff line change
Expand Up @@ -272,5 +272,7 @@ if (LoadedGame == false) then

CreateRoamingFog((CMap:get():get_info().MapWidth * CMap:get():get_info().MapHeight) / 1024) -- should be particularly foggy

CreateNeutralBuildings("unit_building_site", (CMap:get():get_info().MapWidth * CMap:get():get_info().MapHeight) / 1024, 0, CMap:get():get_info().MapWidth - 3, 0, CMap:get():get_info().MapHeight - 3, false)

CreateNeutralBuildings("unit-tree-stump", (CMap:get():get_info().MapWidth * CMap:get():get_info().MapHeight) / 4096, 0, CMap:get():get_info().MapWidth - 2, 0, CMap:get():get_info().MapHeight - 2, false)
end
2 changes: 2 additions & 0 deletions maps/nidavellir/shorbear-hills.sms
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,8 @@ unit = CreateUnit("unit-copper-rock", PlayerNumNeutral, {42, 1})

unit = CreateUnit("unit-glyph", PlayerNumNeutral, {69, 14}) -- cave entrance marker

CreateNeutralBuildings("unit_building_site", (CMap:get():get_info().MapWidth * CMap:get():get_info().MapHeight) / 1024, 0, CMap:get():get_info().MapWidth - 3, 0, CMap:get():get_info().MapHeight - 3, false)

CreateCritters()

CreateRoamingFog((CMap:get():get_info().MapWidth * CMap:get():get_info().MapHeight) / 4096)
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ https://github.com/Andrettin/Wyrmsun
* Items
- The tooltip for an item being hovered over on the map will now display whether it is usable or equippable by the selected unit, if there is a single unit selected.

* Maps
- Added building sites to some of the legacy quest maps.

* Miscellaneous
- Added updated border graphics.

Expand Down

0 comments on commit 568500e

Please sign in to comment.