-
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.
Additions: Clay Lamp Clay Signs Clay Window Box (with sapling or mushroom) Clay Urns (small and large) Mushroom Bed Subtle skin color variations (default, darker, lighter, greyed) Changes: Revised Hearths models, from clay to stone visual All old clay models revamped to a new visual standard, white with cyan stripes and dots. (Clay Well, Clay Chest, Clay Input Bin, Clay Market Shelf, Clay Pots [with cattail, sapling and giple], Clay Mushroom Garden, Potter Kiln) Potter Wheel visually revised, from clay to wood. Recipe uses wood to craft it instead of clay Fixes: Pop up of "Glory level X achieved" displayed +1 higher than the correct value Goblins on other kingdoms would bug if sent to train as geomancer with the bunnies Summons should not attract citizens to talk with while in combat Fixes for ACE: Cattail fiber is spinnable (for weaver) again Fixed food items not being recognized as edible food
- Loading branch information
1 parent
3b19943
commit 91c284b
Showing
328 changed files
with
4,373 additions
and
411 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
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,40 @@ | ||
local SummonComponent = class() | ||
|
||
function SummonComponent:post_activate() | ||
radiant.entities.add_buff(self._entity, "swamp_goblins:buffs:despawn:in_2h") | ||
|
||
self._combat_battery_listener = radiant.events.listen(self._entity, 'stonehearth:combat:in_combat_changed', self, self._in_combat_changed) | ||
end | ||
|
||
function SummonComponent:_in_combat_changed(context) | ||
--when out of combat, they should talk with random citizens | ||
--but when they spawn or while switching targets, they are idle (a 1 frame of no combat) | ||
--so the timer is just a buffer to skip those frames and avoid trying to talk on those | ||
if context.in_combat then | ||
if self._conversation_timer then | ||
self._conversation_timer:destroy() | ||
self._conversation_timer = nil | ||
end | ||
self._entity:get_component('stonehearth:expendable_resources'): | ||
set_value('social_satisfaction', 99) | ||
else | ||
local delayed_function = function () | ||
self._entity:get_component('stonehearth:expendable_resources'): | ||
set_value('social_satisfaction', 0) | ||
end | ||
self._conversation_timer = stonehearth.calendar:set_timer("SummonComponent delay adding conversation_component", "1m+4m", delayed_function) | ||
end | ||
end | ||
|
||
function SummonComponent:destroy() | ||
if self._combat_battery_listener then | ||
self._combat_battery_listener:destroy() | ||
self._combat_battery_listener = nil | ||
end | ||
if self._conversation_timer then | ||
self._conversation_timer:destroy() | ||
self._conversation_timer = nil | ||
end | ||
end | ||
|
||
return SummonComponent |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"type" : "effect", | ||
"tracks": { | ||
"cubemitter": { | ||
"type": "cubemitter", | ||
"cubemitter": "/swamp_goblins/data/horde/particles/green_fire/tiny.json", | ||
"loop": true, | ||
"transforms": { | ||
"x":0, | ||
"y":0.9, | ||
"z":0, | ||
"rx":90, | ||
"ry":0, | ||
"rz":0 | ||
} | ||
}, | ||
"light": { | ||
"type": "light", | ||
"light": "/swamp_goblins/data/horde/animatedlights/green_fire/tiny.json", | ||
"transforms": { | ||
"x":0, | ||
"y":0.9, | ||
"z":0 | ||
}, | ||
"shadows": 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
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,77 @@ | ||
{ | ||
"type": "effect", | ||
"tracks": { | ||
"glowing_letters": { | ||
"type": "cubemitter", | ||
"cubemitter": "/swamp_goblins/data/horde/particles/shrine/book/glowing_letters.json", | ||
"loop": true, | ||
"transforms": { "x": 0.6, "y": 3.16, "z": 1.4, | ||
"rx": 90, | ||
"ry": 0, | ||
"rz": 0 | ||
} | ||
}, | ||
"glowing_letters2": { | ||
"type": "cubemitter", | ||
"cubemitter": "/swamp_goblins/data/horde/particles/shrine/book/glowing_letters.json", | ||
"loop": true, | ||
"transforms": { "x": -0.8, "y": 3.16, "z": 1.4, | ||
"rx": 90, | ||
"ry": 0, | ||
"rz": 0 | ||
} | ||
}, | ||
"dust": { | ||
"type": "cubemitter", | ||
"cubemitter": "/swamp_goblins/data/horde/particles/shrine/book/dust.json", | ||
"loop": true, | ||
"transforms": { "x": 0, "y": 3, "z": 1.25, | ||
"rx": 90, | ||
"ry": 0, | ||
"rz": 0 | ||
} | ||
}, | ||
"ball": { | ||
"type": "cubemitter", | ||
"cubemitter": "/swamp_goblins/data/horde/particles/shrine/book/ball.json", | ||
"loop": true, | ||
"transforms": { "x": 0, "y": 0, "z": 1, | ||
"rx": 0, | ||
"ry": 0, | ||
"rz": 0 | ||
} | ||
}, | ||
"ball2": { | ||
"type": "cubemitter", | ||
"cubemitter": "/swamp_goblins/data/horde/particles/shrine/book/ball.json", | ||
"loop": true, | ||
"start_time":2000, | ||
"transforms": { "x": 0, "y": 0, "z": 1, | ||
"rx": 0, | ||
"ry": 0, | ||
"rz": 0 | ||
} | ||
}, | ||
"light_main": { | ||
"type": "light", | ||
"light": "/rayyas_children/data/horde/animatedlights/shrine/shrine.exotic_trade.soft.large.animatedlight.json", | ||
"transforms": { "x": 0, "y": 8, "z": 1 }, | ||
"shadows": true | ||
}, | ||
"light_small1": { | ||
"type": "light", | ||
"light": "/rayyas_children/data/horde/animatedlights/shrine/shrine.exotic_trade.soft.small.animatedlight.json", | ||
"transforms": { "x": 0, "y": 2, "z": 1}, | ||
"shadows": false | ||
}, | ||
"sound": { | ||
"type": "sound_effect", | ||
"loop": true, | ||
"start_time": 400, | ||
"min_distance": 35, | ||
"falloff": 2, | ||
"volume": 65, | ||
"track": "stonehearth:sounds:firepit_blessed" | ||
} | ||
} | ||
} |
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,57 @@ | ||
{ | ||
"type": "effect", | ||
"tracks": { | ||
"corner1": { | ||
"type": "cubemitter", | ||
"cubemitter": "/swamp_goblins/data/horde/particles/green_fire/tiny.json", | ||
"loop": true, | ||
"transforms": { | ||
"x":-2.3, | ||
"y":2, | ||
"z":-2.1, | ||
"rx":90, | ||
"ry":0, | ||
"rz":0 | ||
} | ||
}, | ||
"corner2": { | ||
"type": "cubemitter", | ||
"cubemitter": "/swamp_goblins/data/horde/particles/green_fire/tiny.json", | ||
"loop": true, | ||
"transforms": { | ||
"x":2.1, | ||
"y":2, | ||
"z":-2.1, | ||
"rx":90, | ||
"ry":0, | ||
"rz":0 | ||
} | ||
}, | ||
"corner3": { | ||
"type": "cubemitter", | ||
"cubemitter": "/swamp_goblins/data/horde/particles/green_fire/tiny.json", | ||
"loop": true, | ||
"transforms": { | ||
"x":-2.3, | ||
"y":2, | ||
"z":2.3, | ||
"rx":90, | ||
"ry":0, | ||
"rz":0 | ||
} | ||
}, | ||
"corner4": { | ||
"type": "cubemitter", | ||
"cubemitter": "/swamp_goblins/data/horde/particles/green_fire/tiny.json", | ||
"loop": true, | ||
"transforms": { | ||
"x":2.1, | ||
"y":2, | ||
"z":2.3, | ||
"rx":90, | ||
"ry":0, | ||
"rz":0 | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.