Page 1 of 1

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

Posted: Sat Apr 22, 2017 12:20 pm
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.

Posted: Sun Apr 23, 2017 8:53 am
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.

Posted: Mon May 22, 2017 3:24 pm
by cgalik
I think it would be nice to make airports and SAM Battery visible too.

Posted: Mon May 22, 2017 9:55 pm
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.

Posted: Mon May 22, 2017 10:22 pm
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.

Posted: Wed May 24, 2017 8:52 am
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. ;)

Posted: Thu May 25, 2017 2:47 am
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.