vaendryl / Sunrider

source code of the visual novel 'Sunrider'
http://sunrider-vn.com/
41 stars 21 forks source link

Change inheriance method of all ships + change of update_stats() #42

Closed DoumanAsh closed 9 years ago

DoumanAsh commented 9 years ago

Inheritance of Battleship is changed from Battleship.init(self) to super() It should ensure that parent methods can be used from child objects

update_stats() is invoked in receive_damage() Battleship has own update_stats() method now Also update_armor() is moved to class.

Special handling is added to dispatchers in case if unexpected result is passed from ui.interact()