Does anyone know if it would be possible to make coastals visible?

Finished (team)
Post Reply
wieder
Member
Posts: 1781
Joined: Thu Jan 01, 1970 12:00 am

Does anyone know if it would be possible to make coastals visible?

Post by wieder »

Would make sense if the attacker could see those. Maybe something similar to the small wonders. You could see the coastal with a middle click.
User avatar
HanduMan
Member
Posts: 115
Joined: Thu Jan 01, 1970 12:00 am

Post by HanduMan »

You can flag it as visible by others.

Code: Select all

; ** Building flags **
; "VisibleByOthers"  = Anyone who can see your city knows whether it has
;                      this improvement. (Great and small wonders are
;                      always visible.)

Code: Select all

[building_coastal_defense]
name		= _("Coastal Defense")
genus		= "Improvement"
flags		= "VisibleByOthers"  ; <===========
reqs	=
    { "type", "name", "range"
      "Tech", "Navigation", "Player"
      "TerrainClass", "Oceanic", "Adjacent"
    }
graphic	= "b.coastal_defense"
graphic_alt	= "-"
obsolete_by	= "None"
build_cost	= 60
upkeep		= 1
sabotage	= 100
sound		= "b_coastal_defense"
sound_alt	= "b_generic"
; /* xgettext:no-c-format */
helptext	= _("\
Gives a +100% bonus to the intrinsic defense strength of units within \
a city when defending against enemy ships. For small cities the defense \
strength is doubled by this improvement; for cities larger than size 8, \
it is increased by two-thirds.\
")
I have not tested if it shows up in the list of buildings by middle-click. I think it should.
Last edited by HanduMan on Sun Apr 23, 2017 8:56 am, edited 1 time in total.
User avatar
cgalik
Member
Posts: 279
Joined: Thu Jan 01, 1970 12:00 am

Post by cgalik »

I think it would be nice to make airports and SAM Battery visible too.
wieder
Member
Posts: 1781
Joined: Thu Jan 01, 1970 12:00 am

Post by wieder »

Airports are now visible but SAM batteries are not. The logic is that airports can be seen but anti aircraft units are not that easy to detect without attacking. If this is not logical, we can make SAM batteries visible as well.
User avatar
cgalik
Member
Posts: 279
Joined: Thu Jan 01, 1970 12:00 am

Post by cgalik »

Fine by me either way. You can see walls, now you can see coastal defense, so I figured you should be able to see SAM Battery as well.
User avatar
arkan
Member
Posts: 39
Joined: Thu Jan 01, 1970 12:00 am

Post by arkan »

I would prefer to have both Coastal defense and SAM batteries invisible until you attack that city (or use a diplomat/spy). It adds some fun to the game when you take the risk of an attack only to discover it had such an improvement.
On the other hand I'm fine with making airports visible as those are much harder to hide. ;)
User avatar
cgalik
Member
Posts: 279
Joined: Thu Jan 01, 1970 12:00 am

Post by cgalik »

I think it'd also be nice to make Barracks and Port Facility Visible as well. Otherwise you have to ask your ally, "does it have barracks?" and if your teammate is on the other side of the world and offline, they often don't respond right then. :) But that does give info to the opposition as well, but I'm fine with that although others may not be.
Post Reply