Skip to content

Commit

Permalink
trough radiomessages
Browse files Browse the repository at this point in the history
  • Loading branch information
sayterdarkwynd committed Oct 22, 2024
1 parent 8397d0c commit 7e0920e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
3 changes: 0 additions & 3 deletions objects/crafting/eggstra/eggincubator/incubator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@ function init()
-- egg type?
self.entityId=entity.id()
self.centrifugeType = config.getParameter("centrifugeType")

incubation = config.getParameter("incubation")

spawnMod = math.random(10) -- + config.getParameter("spawnModValue") -- change this to check the egg instead. each egg has a spawnMod that influences its hatch time
end


function fillAmount()
if type(self.entityId) ~= "number" then return nil end

Expand Down
3 changes: 2 additions & 1 deletion objects/crafting/eggstra/largetrough/irontrough.object
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@
"uiConfig": "/interface/chests/chest<slots>.config",
"frameCooldown": 5,
"autoCloseCooldown": 3600,
"itemAgeMultiplier" : 0.0
"itemAgeMultiplier" : 0.0,
"radioMessagesOnPickup" : ["fu_useTrough"]
}
3 changes: 2 additions & 1 deletion objects/crafting/eggstra/largetrough/largetrough.object
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@
"uiConfig": "/interface/chests/chest<slots>.config",
"frameCooldown": 5,
"autoCloseCooldown": 3600,
"itemAgeMultiplier" : 0.0
"itemAgeMultiplier" : 0.0,
"radioMessagesOnPickup" : ["fu_useTrough"]
}
5 changes: 5 additions & 0 deletions objects/glitch/trough/trough.object.patch
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@
"op": "add",
"path": "/itemAgeMultiplier",
"value": 0.0
},
{
"op": "add",
"path": "/radioMessagesOnPickup",
"value": ["fu_useTrough"]
}
]
8 changes: 8 additions & 0 deletions radiomessages/tutorial.radiomessages.patch
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,13 @@
"type" : "tutorial",
"text" : "^cyan;Kevin^reset; insists he was given this award for the best-selling album of all time among Mantizi culture :^yellow;'Holy Crap, Look At The Size of that Sandwich!'^reset;. No proof has ever been provided. It is best to assume this is bullshit."
}
},
{
"op": "add",
"path": "/fu_useTrough",
"value": {
"type" : "tutorial",
"text" : "^orange;Troughs^reset; provide a place to store food for your farm animals. When one of them becomes hungry, they will seek food there. With enough food they'll become happy, which increases their chance to produce offspring if a viable mate is nearby!"
}
}
]
2 changes: 1 addition & 1 deletion scripts/actions/monsters/farmable.config
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
"yellowfoot",
"zathitails",
"dunestalk",
"avikanspices",
"avikanspices",
"kirifruit",
"nakatibark",
"pirufrond",
Expand Down

0 comments on commit 7e0920e

Please sign in to comment.