Jump to content

Crash from Shield of Terror


thegreatmanagement
  • Pending



User Feedback


Note: Bernie used to have a similar issue similar issue wherein it consumed durability from attacking on a beefalo—which is what would have happened here if it did not crash. The following condition was added to fix it:
 

    inst._onattackother = function(attacker)--, data)
        if not (attacker.components.rider ~= nil and attacker.components.rider:IsRiding() or inst.components.fueled:IsEmpty()) then
            inst.components.fueled:DoDelta(-.01 * TUNING.BERNIE_FUEL)
        end
    end

Shield's current code:
 

local function weaponused(owner,data)
    data.weapon.components.armor:TakeDamage(TUNING.SHIELDOFTERROR_USEDAMAGE)
end

 

  • Like 2

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...