-
Notifications
You must be signed in to change notification settings - Fork 0
/
modinfo.lua
43 lines (40 loc) · 1.69 KB
/
modinfo.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
-- Perishable provides an easy way to make mods compatible with each other
-- when it comes to perishable.lua; instead of each mod altering that file,
-- Perishable does it once and all other mods only need a couple lines of
-- code to use it.
-- To add a custom perish multiplier to an item, add the following code to the
-- main function of that item:
-- inst:AddTag("crsCustomPerishMult")
-- inst.crsCustomPerishMult = <your value here>
-- To make the value customizable use the GetModConfigData function.
-- Use the following format, where myModPerishMult and xxxxxxxxx should be replaced
-- with the name of the option in your modinfo and your mod's workshop ID respectively:
-- inst.crsCustomPerishMult = GetModConfigData("myModPerishMult", "workshop-xxxxxxxxx")
-- Similarly, to add a custom value for temperature duration to an item, add the following
-- code the main function of that item:
-- inst:AddTag("crsCustomTempDuration")
-- inst.crsCustomTempDuration = GetModConfigData("myModTempDuration", "workshop-xxxxxxxxx")
-- Workshop Page: http://steamcommunity.com/sharedfiles/filedetails/?id=442602018
-- Author: cr4shmaster: http://steamcommunity.com/id/cr4shmaster
name = "Perishable v2.1"
description = "This mod is required by other mods that are using 'perishable.lua'."
author = "cr4shmaster"
version = "2.1.3.2"
forumthread = ""
api_version = 6
dont_starve_compatible = true
reign_of_giants_compatible = true
shipwrecked_compatible = true
icon_atlas = "modicon.xml"
icon = "modicon.tex"
configuration_options =
{
{
name = "cfgTestCheck",
label = "Installed",
options = {
{description = "Yes", data = true},
},
default = true,
},
}