-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodmain.lua
111 lines (86 loc) · 3.69 KB
/
modmain.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
PrefabFiles = {
"themaid",
"themaid_none",
"themaidknife",
"themaidpill",
}
Assets = {
Asset( "IMAGE", "images/saveslot_portraits/themaid.tex" ),
Asset( "ATLAS", "images/saveslot_portraits/themaid.xml" ),
Asset( "IMAGE", "images/selectscreen_portraits/themaid.tex" ),
Asset( "ATLAS", "images/selectscreen_portraits/themaid.xml" ),
Asset( "IMAGE", "images/selectscreen_portraits/themaid_silho.tex" ),
Asset( "ATLAS", "images/selectscreen_portraits/themaid_silho.xml" ),
Asset( "IMAGE", "bigportraits/themaid.tex" ),
Asset( "ATLAS", "bigportraits/themaid.xml" ),
Asset( "IMAGE", "images/map_icons/themaid.tex" ),
Asset( "ATLAS", "images/map_icons/themaid.xml" ),
Asset( "IMAGE", "images/avatars/avatar_themaid.tex" ),
Asset( "ATLAS", "images/avatars/avatar_themaid.xml" ),
Asset( "IMAGE", "images/avatars/avatar_ghost_themaid.tex" ),
Asset( "ATLAS", "images/avatars/avatar_ghost_themaid.xml" ),
Asset( "IMAGE", "images/avatars/self_inspect_themaid.tex" ),
Asset( "ATLAS", "images/avatars/self_inspect_themaid.xml" ),
Asset( "IMAGE", "images/names_themaid.tex" ),
Asset( "ATLAS", "images/names_themaid.xml" ),
Asset( "IMAGE", "images/names_gold_themaid.tex" ),
Asset( "ATLAS", "images/names_gold_themaid.xml" ),
Asset("ATLAS", "images/inventoryimages/themaidknife.xml"),
Asset("IMAGE", "images/inventoryimages/themaidknife.tex"),
Asset("ATLAS", "images/themaidtab/themaidtab.xml"),
Asset("IMAGE", "images/themaidtab/themaidtab.tex"),
Asset("ANIM", "anim/themaidpill.zip"),
Asset("ATLAS", "images/inventoryimages/themaidpill.xml"),
}
AddMinimapAtlas("images/map_icons/themaid.xml")
AddMinimapAtlas("images/map_icons/themaidknife.xml")
local require = GLOBAL.require
local STRINGS = GLOBAL.STRINGS
local TECH = GLOBAL.TECH
local TUNING = GLOBAL.TUNING
local startingItems = {
themaidknife = {atlas = "images/inventoryimages/themaidknife.xml"},
"blue_cap",
"green_cap",
}
TUNING.THEMAID = {}
TUNING.THEMAID.REVENGEKEY = GetModConfigData("revengekey") or 122
-- The character select starting items
TUNING.GAMEMODE_STARTING_ITEMS.DEFAULT.THEMAID = {
"themaidknife",
"blue_cap",
"green_cap",
}
TUNING.STARTING_ITEM_IMAGE_OVERRIDE = type(TUNING.STARTING_ITEM_IMAGE_OVERRIDE) == "table" and GLOBAL.MergeMaps(TUNING.STARTING_ITEM_IMAGE_OVERRIDE, startingItems) or startingItems
-- The character select screen lines
STRINGS.CHARACTER_TITLES.themaid = "The Maid"
STRINGS.CHARACTER_NAMES.themaid = "Joy"
STRINGS.CHARACTER_DESCRIPTIONS.themaid = "*Quick, quick, Master is calling\n*Like to do OT\n*Servant mindset\n*Has a tough life\n*Holding a grudge\n*Joy's Knife is deadly sharp\n*Joy's Pill keeps her sane"
STRINGS.CHARACTER_QUOTES.themaid = "\"How Ploy died?\""
STRINGS.CHARACTER_SURVIVABILITY.themaid = "Somewhat"
-- Custom speech strings
STRINGS.CHARACTERS.THEMAID = require "speech_themaid"
-- The character's name as appears in-game
STRINGS.NAMES.THEMAID = "Joy"
STRINGS.SKIN_NAMES.themaid_none = "Joy"
-- Your character's stats
TUNING.THEMAID_HEALTH = 250
TUNING.THEMAID_HUNGER = 150
TUNING.THEMAID_SANITY = 100
TUNING.THEMAID_HUNGER_RATE = TUNING.WILSON_HUNGER_RATE * 0.8
local theMaidPill = Ingredient("themaidpill", 1)
theMaidPill.atlas = "images/inventoryimages/themaidpill.xml"
STRINGS.RECIPE_DESC.THEMAIDPILL = "Greatly boost sanity"
local theMaidPillRecipe = AddRecipe2(
"themaidpill",
{
Ingredient("blue_cap", 1),
Ingredient("green_cap", 1)},
TECH.NONE,
{
builder_tag = "themaidbuilder",
atlas = theMaidPill.atlas
}
)
-- Add mod character to mod character list. Also specify a gender. Possible genders are MALE, FEMALE, ROBOT, NEUTRAL, and PLURAL.
AddModCharacter("themaid", "FEMALE")