-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added small tip explaing how to get more goblins Added flower seeds
- Loading branch information
1 parent
37b5e73
commit 9e55342
Showing
21 changed files
with
193 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
local FireflyWorker = class() | ||
|
||
function FireflyWorker:post_activate() | ||
self._job_changed_listener = radiant.events.listen(self._entity, 'stonehearth:job_changed', self, self._on_job_changed) | ||
end | ||
|
||
function FireflyWorker:_on_job_changed() | ||
if self._job_changed_listener then | ||
self._job_changed_listener:destroy() | ||
self._job_changed_listener = nil | ||
end | ||
local job = self._entity:get_component('stonehearth:job'):get_job_uri() | ||
if job == "stonehearth:jobs:worker" then | ||
self._entity:get_component('stonehearth:job'):promote_to("swamp_goblins:jobs:worker", { skip_visual_effects = true }) | ||
end | ||
self._entity:remove_component('swamp_goblins:firefly_worker') | ||
end | ||
|
||
return FireflyWorker |
23 changes: 23 additions & 0 deletions
23
data/gm/campaigns/town_progression/arcs/trigger/town_progression/encounters/explain_egg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"type": "encounter", | ||
"encounter_type": "dialog_tree", | ||
"rarity": "common", | ||
"in_edge": "explain_egg", | ||
"dialog_tree_info": { | ||
"start_node": "msg1", | ||
"nodes": { | ||
"msg1": { | ||
"bulletin": { | ||
"title": "(WIP) Daily Report", | ||
"dialog_title": "(WIP) Daily Report", | ||
"message": "If you are wondering how to get more goblins, check the pedestal in the shaman recipes!", | ||
"choices": { | ||
"ok": { | ||
"out_edge": "" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
.../campaigns/town_progression/arcs/trigger/town_progression/encounters/wait_before_egg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"type": "encounter", | ||
"encounter_type": "wait_for_time_of_day", | ||
"in_edge" : "wait_before_egg", | ||
"out_edge" : "explain_egg", | ||
"wait_for_time_of_day_info": { | ||
"time": "8:00" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
{ | ||
"mixins": "stonehearth:mixins:item_properties", | ||
"type": "entity", | ||
"components": { | ||
"model_variants": { | ||
"default": { | ||
"models": [ | ||
"file(seed_iconic.qb)" | ||
] | ||
} | ||
}, | ||
"mob": { | ||
"model_origin": { "x": 0.05, "y": 0, "z": 0.05 } | ||
} | ||
}, | ||
"entity_data": { | ||
"stonehearth:catalog": { | ||
"is_item": true, | ||
"category": "seed" | ||
}, | ||
"stonehearth:food_decay": { | ||
"initial_decay": { | ||
"min": 100, | ||
"max": 168 | ||
} | ||
} | ||
} | ||
} | ||
"mixins": "stonehearth:mixins:item_properties", | ||
"type": "entity", | ||
"components": { | ||
"model_variants": { | ||
"default": { | ||
"models": [ | ||
"file(seed_iconic.qb)" | ||
] | ||
} | ||
}, | ||
"mob": { | ||
"model_origin": { "x": 0.05, "y": 0, "z": 0.05 } | ||
} | ||
}, | ||
"entity_data": { | ||
"stonehearth:catalog": { | ||
"is_item": true, | ||
"category": "seed" | ||
}, | ||
"stonehearth:food_decay": { | ||
"initial_decay": { | ||
"min": 100, | ||
"max": 168 | ||
} | ||
} | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"mixins": "swamp_goblins:jobs:worker", | ||
"enabled": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.