unknown-horizons / godot-port

Unknown Horizons Godot Engine Port
https://www.unknown-horizons.org
GNU General Public License v2.0
663 stars 83 forks source link

Add health property and take damage method to unit class #79

Closed SeanKuehl closed 2 years ago

SeanKuehl commented 2 years ago

Made a small fix with the select so it doesn't crash when you make a select over no units. Also added health to unit and a function for taking damage that will destroy the unit if health is == 0

SeanKuehl commented 2 years ago

I have made the requested changes and made everything one commit that starts with a capital letter.

SeanKuehl commented 2 years ago

I have fixed the mentioned spacing issues.

SeanKuehl commented 2 years ago

I have cleaned up the spacing issues. That was my bad, I saw a spacing change that wasn't there.

SeanKuehl commented 2 years ago

I have changed the setting in my editor and resaved.

artism90 commented 2 years ago

Thanks!