Jump to content

Quick Question about loot/drop


Recommended Posts

Hello,

 

I know how to add a drop to a monster prefabs but is there a cleanest way to add a drop to an existing monster ? (Like Warg, in my example)

Like putting some code in "modmain" instead of a prefab ?

 

(Because i suppose that if i call the "warg" prefabs it could conflict with another mod modifying the prefabs too ?)

Link to comment
Share on other sites

@Lumina, example:

local function WargPostInit( inst )    if not TheWorld.ismsatersim then        return inst    end    if inst.components.lootdropper then        inst.components.lootdropper:AddChanceLoot("warg", 1)    end    return instendAddPrefabPostInit( "warg", WargPostInit) 
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
 Share

×
  • Create New...