dry attribute for ground

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Previous topicNext topic
User avatar
CommanderABab
AB
Reactions:
Posts: 11269
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

dry attribute for ground

Post by CommanderABab »

If you include

Code: Select all

"dry":true
in your ground plugin, it cannot be replaced by water and can't be flooded by the flood disaster.

Requires beta 371 upward.
my avatar:
User avatar
CommanderABab
AB
Reactions:
Posts: 11269
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: dry attribute for ground

Post by CommanderABab »

Not if you hijack the normal ground id. :)
my avatar:
User avatar
22Alpha
Inhabitant of a Conurbation
Reactions:
Posts: 448
Joined: 23 Sep 2017, 12:29

Platform

Re: dry attribute for ground

Post by 22Alpha »

This would also mean that if buildings have dry:true with roads nearby, adding flood would only affect roads and not the buildings. Am I right?
:mine
User avatar
CommanderABab
AB
Reactions:
Posts: 11269
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: dry attribute for ground

Post by CommanderABab »

Roads could be built on dry ground also.
my avatar:
User avatar
22Alpha
Inhabitant of a Conurbation
Reactions:
Posts: 448
Joined: 23 Sep 2017, 12:29

Platform

Re: dry attribute for ground

Post by 22Alpha »

But would not load floods right? or they would but it will come back after flood?
:mine
User avatar
CommanderABab
AB
Reactions:
Posts: 11269
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: dry attribute for ground

Post by CommanderABab »

Anything that gets flooded is removed during the disaster and replaced by new ground.
my avatar:
Previous topicNext topic