Skip to content

Commit 09d12c7

Browse files
committed
Added value descriptions to custom data types
1 parent a908ce9 commit 09d12c7

22 files changed

+165
-164
lines changed

datatypes/bee_definition.lua

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---@class bee_definition
2-
---@field id string
3-
---@field title string
4-
---@field latin string
5-
---@field hint string
6-
---@field desc string
7-
---@field lifespan string[]
8-
---@field productivity string[]
9-
---@field fertility string[]
10-
---@field stability string[]
11-
---@field behaviour string[]
12-
---@field climate string[]
13-
---@field rainlover boolean
14-
---@field snowlover boolean
15-
---@field grumpy boolean
16-
---@field produce string
17-
---@field chance number
18-
---@field requirement string
19-
---@field bid string
20-
---@field calming string[]
21-
---@field tier number
2+
---@field id string lowercase unique name for your bee
3+
---@field title string name of your bee for tooltips + books
4+
---@field latin string the latin name for your bee, shown in the book
5+
---@field hint string the hint to show in the book when this species hasn't been discovered yet
6+
---@field desc string the description to show in the book when this species has been discovered
7+
---@field lifespan string[] a list of possible lifespan traits this species can spawn with, value options are Hyper, Rapid, Short, Normal, Long, Ancient, Eternal
8+
---@field productivity string[] a list of possible productivity traits this species can spawn with, value options are Sluggish, Slowest, Slow, Normal, Fast, Fastest, Brisk
9+
---@field fertility string[] a list of possible fertility traits this species can spawn with, value options are Sterile, Infertile, Unlucky, Fertile, Fecund, Prolific, Swarming
10+
---@field stability string[] a list of possible stability traits this species can spawn with, value options are Chaotic, Erratic, Unstable, Normal, Stable, Ordered, Pure
11+
---@field behaviour string[] a list of possible behaviour traits this species can spawn with, value options are Diurnal, Nocturnal, Crepuscular, Cathemeral
12+
---@field climate string[] a list of possible climate traits this species can spawn with, value options are Temperate, Tropic, Polar, Any
13+
---@field rainlover boolean whether this species can work while it's raining
14+
---@field snowlover boolean whether this species can work while it's snowing
15+
---@field grumpy boolean whether this species is grumpy and needs to be calmed before being worked with
16+
---@field produce string the item oid of the item this species' "special produce" that will be created when frames are extracted
17+
---@field chance number the chance this bee can be formed when it's the mutation for a hybrid
18+
---@field requirement string the requirement for how this bee can be formed when it's the mutation for a hybrid, shown in the Predictor
19+
---@field bid string a unique 2 character identifier for this species to use for the beebox / beebank storage. The identifier cannot be a number, i.e. 01 as these are reserved by the base game. This must be unique across all mods, so ask your fellow modders first!
20+
---@field calming string[] [Optional] if this species is grumpy, you can provide a list of flower oids that calm it
21+
---@field tier number [Optional] the tier this bee should belond to, if there is room. Should be a number between 1-5, if no room is in the given tier it'll try the next tier up until it defaults to 5

datatypes/blueprint.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---@class blueprint
2-
---@field width number
3-
---@field height number
4-
---@field x number
5-
---@field y number
6-
---@field type string Options: [forest, swamp, snow, hallow]
7-
---@field dye number [Optional] 1-16
2+
---@field width number the width of the blueprint, which effects the blob of land created
3+
---@field height number the height of the blueprint, which effects the blob of land created
4+
---@field x number the y position in the world to put this blueprint
5+
---@field y number the y position in the world to put this blueprint
6+
---@field type string the type of biome to set for this blueprint | "'forest'" | "'swamp'" | "'snow'" | "'hallow'"
7+
---@field dye number [Optional] set a dye to apply to the land and nature items, valid number between 1-16

datatypes/boundary.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---@class boundary
2-
---@field top number
3-
---@field left number
4-
---@field bottom number
5-
---@field right number
2+
---@field top number the top y position of the bounding box
3+
---@field left number the left x position of the bounding box
4+
---@field bottom number the bottom y position of the bounding box
5+
---@field right number the right x position of the bounding box

datatypes/color.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---@class color
2-
---@field r number
3-
---@field g number
4-
---@field b number
2+
---@field r number the red value of the color
3+
---@field g number the green value of the color
4+
---@field b number the blue value of the color

datatypes/coordinate.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---@class coordinate
2-
---@field x number
3-
---@field y number
2+
---@field x number the x position of this co-ordinate
3+
---@field y number the y position of this co-ordinate

datatypes/flower_definition.lua

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---@class flower_definition
2-
---@field id string
3-
---@field species string
4-
---@field title string
5-
---@field latin string
6-
---@field hint string
7-
---@field desc string
8-
---@field aquatic boolean
9-
---@field deep boolean
10-
---@field shop_buy number
11-
---@field shop_sell number
12-
---@field machines string[]
13-
---@field tools string[]
14-
---@field variants number
15-
---@field chance number
16-
---@field smoker string[]
2+
---@field id string unique ID for this flower - your oid will be a combination of "flower" and your id
3+
---@field species string lowercase unique name for your flower
4+
---@field title string name of your flower for tooltips
5+
---@field latin string the latin name for your flower, shown in the book
6+
---@field hint string the hint to show in the book when this species hasn't been discovered yet
7+
---@field desc string the description to show in the book when this species has been discovered
8+
---@field aquatic boolean whether this flower can be planted / grow on shallow water
9+
---@field deep boolean [Optional] whether this flower can be planted / grow on deep water
10+
---@field shop_buy number [Optional] the amount this flower can be bought for if sold by an NPC
11+
---@field shop_sell number [Optional] the amount this flower can be sold for at an NPC
12+
---@field machines string[] [Optional] a list of object oids that this flower can be used in
13+
---@field tools string[] [Optional] a list of tools that can be used on this flower,
14+
---@field variants number [Optional] specifies the number of variants in your sprite image, defaults to 1
15+
---@field chance number [Optional] the chance this species will be formed as a mutation, defaults to 100
16+
---@field smoker string[] [Optional] a list of bee species that this flower can be used to calm in a smoker

datatypes/game_size.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---@class game_size
2-
---@field width number
3-
---@field height number
2+
---@field width number the width of the game screen
3+
---@field height number the height of the game screen

datatypes/info.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---@class info
2-
---@field 1 string tooltip
3-
---@field 2 string color key
2+
---@field 1 string the tooltip to show
3+
---@field 2 string | "'GREEN'" | "'BLUE'" | "'RED'" | "'YELLOW'" | "'WHITE'"

datatypes/ingredient.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---@class ingredient
2-
---@field item string
3-
---@field amount number
2+
---@field item string the item for this ingredient
3+
---@field amount number the amount of this item needed for this ingredient

datatypes/instance.lua

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---@class instance
2-
---@field id number
3-
---@field x number
4-
---@field y number
5-
---@field oid string
6-
---@field sprite_index number
7-
---@field image_index number
8-
---@field menu_id number will be nil if not a menu instance
9-
---@field slots slot[] will be nil if not a menu instance
2+
---@field id number the GMS id for this instance, to use in API methods
3+
---@field x number the x position of this inst
4+
---@field y number the y position of this inst
5+
---@field oid string the APICO "id" value used with the Dictionary
6+
---@field sprite_index number the sprite image id used for this instance
7+
---@field image_index number the sprite image "frame" currently set for this instance
8+
---@field menu_id number the menu instance for this instance - will be nil if not a menu object instance
9+
---@field slots slot[] a list of slot instances - will be nil if not a menu instance

0 commit comments

Comments
 (0)