Skip to content

myxal/crsPerishableDS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perishable for Don't Starve

Vanilla Reign of Giants Shipwrecked Steam Workshop Paypal Donation Steam Trade Offer

Description:

This mod handles perishable.lua. It makes it possible for other mods to have their own configurable perish multiplier and/or temperature duration modifier, without the risk of a possible conflict when two or more of these mods are used simultaneously. However, compliance from the other modders is required.

How does it work?

It modifies perishable.lua once; the only thing that a modder has to do is to add a couple properties to their created item and make their mod require Perishable. Here's how to do that:

  • add the options in your modinfo.lua under a name of your choice (let's assume you picked myModPerishMult and myModTempDuration)
  • then, in your item's lua script, inside the main function, add these lines:
inst:AddTag("crsCustomPerishMult") 
inst.crsCustomPerishMult = GetModConfigData("myModPerishMult", "workshop-xxxxxxxxx") 
inst:AddTag("crsCustomTempDuration") 
inst.crsCustomTempDuration = GetModConfigData("myModTempDuration", "workshop-xxxxxxxxx") 
  • and you're done;
  • remember to replace myModPerishMult and myModTempDuration with names of your choice, preferably something unique that includes the name of your mod, and xxxxxxxxx with the ID of your mod;

Additional information:

To install this mod you simply have to subscribe on the Steam Workshop and it will automatically be downloaded the next time you access the mods menu in the game.
If your game crashes in the mod menu, try disabling Small Textures in the game's settings.
If you have any suggestions, feel free to post them in the comment section on the Workshop page.

About

This mod handles 'perishable.lua' script for Don't Starve.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages