Jump to content

[General] - Typo in MaxHealer component


Jjmarco

Recommended Posts

Bug Submission:

Category: General
Issue Title: Typo in MaxHealer component
Issue Description: In the MaxHealer component:

function MaxHealer:SetHealthAmount(health)    self.maxhealth = maxhealthend

health should be maxhealth, otherwise it crashes!

Not a big issue, because the maxhealth field can be directly accessed, but it can throw off people trying to mod a maxhealing item.

 

Steps to Reproduce: - Have an item with the maxhealer component
- Try to set its healing factor with SetHealthAmount
- Launch game
- Be confused by the crash when spawning item

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...