soul4soul / ot-monster-converter

C# .NET 5 program for converting OpenTibia (OT) monsters between commonly used formats
10 stars 12 forks source link

Support creature health vs maxhealth #83

Open soul4soul opened 1 year ago

soul4soul commented 1 year ago

Current monster class has a field for health but not maxhealth. The health field is treated as max health. However some monsters like the barkless spawn with less then max health. TFS xml and tfs revscriptsys formats have variables for both health and maxhealth.

Add a new maxhealth field to the monster class. Update converters to make use of the appropriate fields.