Skip to content

Commit

Permalink
new kingdom images
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoSupremo committed Jun 13, 2018
1 parent 2a73224 commit ec40478
Show file tree
Hide file tree
Showing 40 changed files with 56 additions and 93 deletions.
4 changes: 0 additions & 4 deletions data/build/building_brushes.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@
"display_name": "i18n(swamp_goblins:data.build.building_brushes.colors.#5C6E4C)",
"ordinal" : 10006
},
"#918154" : {
"display_name": "i18n(swamp_goblins:data.build.building_brushes.colors.#918154)",
"ordinal" : 10007
},
"#9C9F69" : {
"display_name": "i18n(swamp_goblins:data.build.building_brushes.colors.#9C9F69)",
"ordinal" : 10008
Expand Down
Binary file modified data/images/firefly_400x300.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/images/story_board_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletions data/resource_constants.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
{
"resources": {
"fiber resource": {
"stacks": 60
"stacks": 60,
"builder_icon": "/swamp_goblins/entities/resources/fiber/builder_fiber.png",
"builder_icon_hover": "/swamp_goblins/entities/resources/fiber/builder_fiber.png",
"builder_sound_uri": "stonehearth:sounds:building_wall_wood",
"tooltip": "swamp_goblins:ui.game.build_mode2.tooltips.fiber_resource"
},
"bone resource": {
"name": "i18n(swamp_goblins:ui.data.constants.bone_resource_name)",
"icon": "/swamp_goblins/entities/resources/bone/bone.png",
"default_resource": "swamp_goblins:resources:bone",
"stacks": 60
"stacks": 60,
"builder_icon": "/swamp_goblins/entities/resources/bone/builder_bone.png",
"builder_icon_hover": "/swamp_goblins/entities/resources/bone/builder_bone.png",
"builder_sound_uri": "stonehearth:sounds:building_wall_wood",
"tooltip": "swamp_goblins:ui.game.build_mode2.tooltips.bone_resource"
}
}
}
2 changes: 1 addition & 1 deletion entities/armor/bear_armor/bear_armor.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"render_type": "merge_with_model",
"ilevel": 5,
"required_job_level": 1,
"roles": "mail_wearer",
"roles": "goblin_worker_job",
"equip_effect": "stonehearth:effects:weapon_level_up"
}
},
Expand Down
2 changes: 1 addition & 1 deletion entities/armor/bear_helmet/bear_helmet.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"slot": "helmet",
"ilevel": 3,
"required_job_level": 1,
"roles": "mail_wearer",
"roles": "goblin_worker_job",
"equip_effect": "stonehearth:effects:weapon_level_up"
}
},
Expand Down
2 changes: 1 addition & 1 deletion entities/armor/bone_armor/bone_armor.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"render_type": "merge_with_model",
"ilevel": 5,
"required_job_level": 1,
"roles": "mail_wearer",
"roles": "goblin_worker_job",
"equip_effect": "stonehearth:effects:weapon_level_up"
}
},
Expand Down
2 changes: 1 addition & 1 deletion entities/armor/bone_helmet/bone_helmet.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"slot": "helmet",
"ilevel": 3,
"required_job_level": 1,
"roles": "mail_wearer",
"roles": "goblin_worker_job",
"equip_effect": "stonehearth:effects:weapon_level_up"
}
},
Expand Down
3 changes: 1 addition & 2 deletions entities/armor/chieftan_base_armor/chieftan_base_armor.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"slot": "torso",
"render_type": "merge_with_model",
"ilevel": 1,
"_required_job_level": 1,
"roles": "worker_job",
"roles": "goblin_worker_job",
"equip_effect": "stonehearth:effects:weapon_level_up",
"additional_equipment": {
"swamp_goblins:armor:chieftan_base_helmet": true
Expand Down
3 changes: 1 addition & 2 deletions entities/armor/chieftan_base_armor/chieftan_base_helmet.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
"slot": "helmet",
"render_type": "merge_with_model",
"ilevel": -1,
"_required_job_level": 1,
"roles": "worker_job"
"roles": "goblin_worker_job"
}
},
"entity_data": {
Expand Down
2 changes: 1 addition & 1 deletion entities/armor/fern_helmet/fern_helmet.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"slot": "helmet",
"ilevel": 3,
"required_job_level": 1,
"roles": "mail_wearer",
"roles": "goblin_worker_job",
"equip_effect": "stonehearth:effects:weapon_level_up"
}
},
Expand Down
2 changes: 1 addition & 1 deletion entities/armor/flower_helmet/flower_helmet.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"slot": "helmet",
"ilevel": 3,
"required_job_level": 1,
"roles": "mail_wearer",
"roles": "goblin_worker_job",
"equip_effect": "stonehearth:effects:weapon_level_up"
}
},
Expand Down
2 changes: 1 addition & 1 deletion entities/armor/leather_armor/leather_armor.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"render_type": "merge_with_model",
"ilevel": 5,
"required_job_level": 1,
"roles": "mail_wearer",
"roles": "goblin_worker_job",
"equip_effect": "stonehearth:effects:weapon_level_up"
}
},
Expand Down
2 changes: 1 addition & 1 deletion entities/armor/leather_helmet/leather_helmet.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"slot": "helmet",
"ilevel": 3,
"required_job_level": 1,
"roles": "mail_wearer",
"roles": "goblin_worker_job",
"equip_effect": "stonehearth:effects:weapon_level_up"
}
},
Expand Down
2 changes: 1 addition & 1 deletion entities/armor/log_armor/log_armor.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"render_type": "merge_with_model",
"ilevel": 5,
"required_job_level": 1,
"roles": "mail_wearer",
"roles": "goblin_worker_job",
"equip_effect": "stonehearth:effects:weapon_level_up"
}
},
Expand Down
2 changes: 1 addition & 1 deletion entities/armor/log_helmet/log_helmet.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"slot": "helmet",
"ilevel": 3,
"required_job_level": 1,
"roles": "mail_wearer",
"roles": "goblin_worker_job",
"equip_effect": "stonehearth:effects:weapon_level_up"
}
},
Expand Down
2 changes: 1 addition & 1 deletion entities/armor/mushroom_armor/mushroom_armor.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"render_type": "merge_with_model",
"ilevel": 5,
"required_job_level": 1,
"roles": "mail_wearer",
"roles": "goblin_worker_job",
"equip_effect": "stonehearth:effects:weapon_level_up"
}
},
Expand Down
2 changes: 1 addition & 1 deletion entities/armor/mushroom_helmet/mushroom_helmet.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"slot": "helmet",
"ilevel": 3,
"required_job_level": 1,
"roles": "mail_wearer",
"roles": "goblin_worker_job",
"equip_effect": "stonehearth:effects:weapon_level_up"
}
},
Expand Down
2 changes: 1 addition & 1 deletion entities/armor/varanus_armor/varanus_armor.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"render_type": "merge_with_model",
"ilevel": 5,
"required_job_level": 1,
"roles": "mail_wearer",
"roles": "goblin_worker_job",
"equip_effect": "stonehearth:effects:weapon_level_up"
}
},
Expand Down
2 changes: 1 addition & 1 deletion entities/armor/varanus_helmet/varanus_helmet.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"slot": "helmet",
"ilevel": 3,
"required_job_level": 1,
"roles": "mail_wearer",
"roles": "goblin_worker_job",
"equip_effect": "stonehearth:effects:weapon_level_up"
}
},
Expand Down
Binary file added entities/resources/bone/builder_bone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added entities/resources/fiber/builder_fiber.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion entities/weapons/skull_basher/skull_basher.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"stonehearth:patrol"
],
"ilevel": 14,
"roles": "footman_job",
"roles": "chief",
"equip_effect": "stonehearth:effects:weapon_level_up"
}
},
Expand Down
2 changes: 1 addition & 1 deletion jobs/beastmaster/beastmaster_description.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"torso": "file(beastmaster_outfit)",
"mainhand": "swamp_goblins:beastmaster:staff"
},
"roles": "beastmaster_job crafter",
"roles": "goblin_beastmaster_job crafter",
"talisman_uri": "swamp_goblins:beastmaster:talisman",
"default_stance": "passive",
"icon": "file(images/icon.png)",
Expand Down
2 changes: 1 addition & 1 deletion jobs/bonesmith/bonesmith_description.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"torso": "file(bonesmith_outfit)",
"mainhand": "swamp_goblins:bonesmith:saw"
},
"roles": "bonesmith_job crafter",
"roles": "goblin_bonesmith_job crafter",
"talisman_uri": "swamp_goblins:bonesmith:talisman",
"default_stance": "passive",
"icon": "file(images/icon.png)",
Expand Down
2 changes: 1 addition & 1 deletion jobs/chief/chief_description.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"torso": "file(chief_outfit)",
"mainhand": "swamp_goblins:chief:staff"
},
"roles": "chief_job crafter",
"roles": "goblin_chief_job crafter",
"talisman_uri": "swamp_goblins:chief:talisman",
"default_stance": "passive",
"icon": "file(images/icon.png)",
Expand Down
2 changes: 1 addition & 1 deletion jobs/earthmaster/earthmaster_description.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"torso": "file(earthmaster_outfit)",
"mainhand": "swamp_goblins:earthmaster:staff"
},
"roles": "earthmaster_job crafter",
"roles": "goblin_earthmaster_job crafter",
"talisman_uri": "swamp_goblins:earthmaster:talisman",
"default_stance": "passive",
"icon": "file(images/icon.png)",
Expand Down
2 changes: 1 addition & 1 deletion jobs/firemaster/firemaster_description.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"torso": "file(firemaster_outfit)",
"mainhand": "swamp_goblins:firemaster:staff"
},
"roles": "firemaster_job crafter",
"roles": "goblin_firemaster_job crafter",
"talisman_uri": "swamp_goblins:firemaster:talisman",
"default_stance": "passive",
"icon": "file(images/icon.png)",
Expand Down
2 changes: 1 addition & 1 deletion jobs/muckscrabbler/muckscrabbler_description.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"torso": "file(muckscrabbler_outfit)",
"mainhand": "swamp_goblins:muckscrabbler:staff"
},
"roles": "muckscrabbler_job crafter",
"roles": "goblin_muckscrabbler_job crafter",
"talisman_uri": "swamp_goblins:muckscrabbler:talisman",
"default_stance": "passive",
"icon": "file(images/icon.png)",
Expand Down
2 changes: 1 addition & 1 deletion jobs/peon/peon_description.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"torso": "file(peon_outfit)",
"mainhand": "swamp_goblins:peon:staff"
},
"roles": "peon_job crafter",
"roles": "goblin_peon_job crafter",
"talisman_uri": "swamp_goblins:peon:talisman",
"default_stance": "passive",
"icon": "file(images/icon.png)",
Expand Down
2 changes: 1 addition & 1 deletion jobs/shadow_walker/shadow_walker_description.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"torso": "file(shadow_walker_outfit)",
"mainhand": "swamp_goblins:shadow_walker:staff"
},
"roles": "shadow_walker_job crafter",
"roles": "goblin_shadow_walker_job crafter",
"talisman_uri": "swamp_goblins:shadow_walker:talisman",
"default_stance": "passive",
"icon": "file(images/icon.png)",
Expand Down
2 changes: 1 addition & 1 deletion jobs/shaman/shaman_description.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"torso": "file(shaman_outfit)",
"mainhand": "swamp_goblins:shaman:staff"
},
"roles": "shaman_job crafter",
"roles": "goblin_shaman_job crafter",
"talisman_uri": "swamp_goblins:shaman:talisman",
"default_stance": "passive",
"icon": "file(images/icon.png)",
Expand Down
Binary file modified jobs/shaman/shaman_workbench/shaman_workbench_iconic.qb
Binary file not shown.
2 changes: 1 addition & 1 deletion jobs/spirit_walker/spirit_walker_description.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"torso": "file(spirit_walker_outfit)",
"mainhand": "swamp_goblins:spirit_walker:staff"
},
"roles": "spirit_walker_job crafter",
"roles": "goblin_spirit_walker_job crafter",
"talisman_uri": "swamp_goblins:spirit_walker:talisman",
"default_stance": "passive",
"icon": "file(images/icon.png)",
Expand Down
2 changes: 1 addition & 1 deletion jobs/warrior/warrior_description.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"torso": "file(warrior_outfit)",
"mainhand": "swamp_goblins:warrior:staff"
},
"roles": "warrior_job crafter",
"roles": "goblin_warrior_job crafter",
"talisman_uri": "swamp_goblins:warrior:talisman",
"default_stance": "passive",
"icon": "file(images/icon.png)",
Expand Down
2 changes: 1 addition & 1 deletion jobs/worker/worker_description.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "i18n(swamp_goblins:jobs.rabble.rabble_description.description)",
"abilities": "file(worker_abilities.json)",
"default_stance": "aggressive",
"roles": "worker_job melee_combat combat",
"roles": "goblin_worker_job melee_combat combat",
"controller": "swamp_goblins:class:worker",
"equipment": {
"mixintypes":{
Expand Down
13 changes: 9 additions & 4 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"initial_town_name": "Small Goblin Clan",
"display_name": "Firefly Clan",
"quote": "",
"long_description": "WIP wip WIP wip long_description",
"post_selection_description": ", WIP wip WIP wip."
"long_description": "Living in the swamp as a shamanistic tribe setup. This way of living has given them a perception on life, that are a bit different than their greenskinned cousins.",
"post_selection_description": ", a rowdy gang of goblins."
}
},
"build": {
Expand All @@ -46,7 +46,6 @@
"#A6C780": "Light Fiber (Swamp)",
"#7B9067": "Fiber (Swamp)",
"#5C6E4C": "Dark Fiber (Swamp)",
"#918154": "Sleeping Fiber (Swamp)",
"#9C9F69": "Fresh Leaf (Swamp)",
"#8B8E57": "Old leaf (Swamp)",
"#7C7F48": "Light Leaf (Swamp)",
Expand Down Expand Up @@ -312,7 +311,7 @@
}
},
"recipes":{
"potions":"Potions"
"potions":"Potions"
}
},
"spirit_walker": {
Expand Down Expand Up @@ -377,6 +376,12 @@
},
"ui": {
"game": {
"build_mode2":{
"tooltips":{
"fiber_resource":"Fiber",
"bone_resource":"Bone"
}
},
"menu": {
"crafter_menu": {
"items": {
Expand Down
51 changes: 0 additions & 51 deletions services/server/swimming/custom_swimming_service.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,57 +3,6 @@ local Cube3 = _radiant.csg.Cube3
CustomSwimmingService = class()

function CustomSwimmingService:_is_swimming(entity)
local biome_name = stonehearth.world_generation:get_biome_alias()
local colon_position = string.find (biome_name, ":", 1, true) or -1
local mod_name_containing_the_biome = string.sub (biome_name, 1, colon_position-1)
local fn = "_is_swimming_" .. mod_name_containing_the_biome
if self[fn] ~= nil then
--found a function for the biome being used, named:
-- self:_is_swimming_<biome_name>(args,...)
return self[fn](self, entity)
else
--there is no function for this specific biome, so call a copy of the original from stonehearth
return self:_is_swimming_original(entity)
end
end

function CustomSwimmingService:_is_swimming_original(entity)
if not entity or not entity:is_valid() then
return false
end

local location = radiant.entities.get_world_grid_location(entity)
if not location then
return false
end
local mob_collision_type = entity:add_component('mob'):get_mob_collision_type()
local entity_height = self._mob_heights[mob_collision_type]
if not entity_height then
log:warning('unsupported mob_collision_type for swimming')
return false
end

local cube = Cube3(location)
cube.max.y = cube.min.y + entity_height
local intersected_entities = radiant.terrain.get_entities_in_cube(cube)
local swimming = false

for id, entity in pairs(intersected_entities) do
local water_component = entity:get_component('stonehearth:water')
if water_component then
local water_level = water_component:get_water_level()
local swim_level = location.y + entity_height * 0.5
if water_level > swim_level then
swimming = true
break
end
end
end

return swimming
end

function CustomSwimmingService:_is_swimming_swamp_goblins(entity)
if not entity or not entity:is_valid() then
return false
end
Expand Down
Loading

0 comments on commit ec40478

Please sign in to comment.