Jump to content

So.... thelucite crowns


Recommended Posts

When the Thulecite Crown's force field is triggered, it will redirect all damage to the crown. The crown doesn't negate all incoming damage, but instead, it absorbs all incoming damage for the duration of the force field.

  local function ruinshat_proc(inst, owner)
        inst:AddTag("forcefield")
        if inst._fx ~= nil then
            inst._fx:kill_fx()
        end
        inst._fx = SpawnPrefab("forcefieldfx")
        inst._fx.entity:SetParent(owner.entity)
        inst._fx.Transform:SetPosition(0, 0.2, 0)
        inst:ListenForEvent("armordamaged", ruinshat_fxanim)

        inst.components.armor:SetAbsorption(TUNING.FULL_ABSORPTION)
        inst.components.armor.ontakedamage = function(inst, damage_amount)
            if owner ~= nil and owner.components.sanity ~= nil then
                owner.components.sanity:DoDelta(-damage_amount * TUNING.ARMOR_RUINSHAT_DMG_AS_SANITY, false)

When the Thulecite Crown procs its force field, it will set the crown's absorption to FULL_ABSORPTION

Link to comment
Share on other sites

hmm oh okay i had realized why this was the case i saw a video of some 1 playing and saw the crown wasnt taking damage but the armor was  and that was probably cause of standard dont starve in how the primary armor works as the first absorption taking 100 percent of the dmg  in percent form. so that was initially why i started this was because i had saw that happend and thought there was a bug or something

Link to comment
Share on other sites

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...