jasonycw / TyphoonTycoon

In the year 21XX, the Li’s field (李氏力場) becomes reality, in a form of a tower defence system. The system seeks to weaken, if not totally destroy, incoming typhoons into Hong Kong. Li’s enterprise has appointed Player to control the typhoon defence system for Li. The game genre are strategy and tower defence game.
http://jasonycw.github.io/TyphoonTycoon/
MIT License
8 stars 3 forks source link

Notification and explanation in power outage #37

Closed vicksonzero closed 9 years ago

vicksonzero commented 9 years ago

resolves #24 Fixed level reset bug (level:0) added "offline!" messages to towers that stop working during power outage also "back online" when power is restored [code] introduced Tower.all() and Structure.all() to tell all of the same type to work

also: let player keep clicking until he can build the tower tower description will now tell player if he have not enough power to build the tower

vicksonzero commented 9 years ago

"let player keep clicking until he can build the tower"

~~just 1 point... the player can possibly get minus HSI easily if

  1. he chose a structure, then
  2. he is hit hard by typhoon, then
  3. he finally places the structure~~

test play shows that by mechanism it is not possible (i.e. safe to play) just that the error message is wierd

vicksonzero commented 9 years ago

soz didn't clear the instance list when restart

vicksonzero commented 9 years ago

please read through all the commits or do thorough testing before merging. commits have grown in number....