Freedom Reborn

Freedom Force Forums => Hero File Discussion => Topic started by: DoctorRuina on December 29, 2024, 08:33:08 AM

Title: Graviton
Post by: DoctorRuina on December 29, 2024, 08:33:08 AM
I have problems with the Graviton hero file. When use gravityincrease It doesn't hurt characters with invulnerability like Count Nefaria or the Tick. I've tried to mod the ffx but I haven't been able to do it. Can anyone help me with this?
Title: Re: Graviton
Post by: mac402 on October 13, 2025, 04:29:07 PM
If you're still struggling with this try to edit ffx.py like that:

under def updateStates(event)
find this line:

            #gravitied characters
            str=Object_GetAttr(char,'strength')
            if str<0:
                FFX_ApplyDamage(char,-str)

and change to:

            #gravitied characters
            str=Object_GetAttr(char,'strength')
            if str<0:
                FFX_ApplyDamage(char,(-str+FFX_ObjectGetAttr(char,'invPoints')))

I haven't tested this solution but it should make gravityincrease bypass invulnerability.