Skip to content

Commit

Permalink
Remove (now redundant) health variable and function in FlxObject (Hax…
Browse files Browse the repository at this point in the history
…eFlixel#3065)

* Update FlxObject.hx

* Revert "Update FlxObject.hx"

This reverts commit 9d7b2f1.

* suggestion from CaptainBaldi
  • Loading branch information
moxie-coder authored Mar 10, 2024
1 parent a0ebd28 commit 1111e9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flixel/FlxObject.hx
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,7 @@ class FlxObject extends FlxBasic
/**
* Handy for storing health percentage or armor points or whatever.
*/
@:deprecated("This is no longer needed, as you can extend FlxObject")
public var health:Float = 1;

/**
Expand Down Expand Up @@ -1205,6 +1206,7 @@ class FlxObject extends FlxBasic
*
* @param Damage How much health to take away (use a negative number to give a health bonus).
*/
@:deprecated("This is no longer needed, as you can extend FlxObject")
public function hurt(damage:Float):Void
{
health = health - damage;
Expand Down

0 comments on commit 1111e9c

Please sign in to comment.