Advertisement
Starly124

Untitled

Feb 10th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. local function webbermeat(inst)
  2. if GLOBAL.IsDLCEnabled(GLOBAL.REIGN_OF_GIANTS) then
  3. if GLOBAL.GetPlayer() and GLOBAL.GetPlayer().prefab == "webber" then
  4. inst.components.edible.healthvalue = -TUNING.HEALING_SMALL
  5. inst.components.edible.hungervalue =(GetModConfigData("edit"))
  6. inst.components.edible.sanityvalue = -TUNING.SANITY_SMALL
  7. else
  8. end
  9. end
  10. end
  11. AddPrefabPostInit("cookedmonstermeat", webbermeat)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement