-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
53 changed files
with
1,411 additions
and
1,106 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,233 @@ | ||
<Biome> | ||
<Topology | ||
name="$biome_robobase_core" | ||
type="BIOME_WANG_TILE" | ||
background_image="data/weather_gfx/background_robobase.png" | ||
background_edge_left="data/weather_gfx/edges/background_robobase_left.png" | ||
background_edge_right="data/weather_gfx/edges/background_robobase_right.png" | ||
background_edge_top="data/weather_gfx/edges/background_robobase_top.png" | ||
background_edge_bottom="data/weather_gfx/edges/background_robobase_bottom.png" | ||
background_edge_priority="10" | ||
wang_template_file="" | ||
lua_script="data/scripts/biomes/roboroom.lua" | ||
wang_map_width="256" | ||
wang_map_height="256" | ||
limit_background_image="0" | ||
audio_music_2="vault" | ||
audio_music_energy_coeff="1" | ||
audio_ambience="vault" | ||
> | ||
<BitmapCaves | ||
size_x="256" | ||
size_y="256" | ||
spawn_percent="0" | ||
blob_caves_count_min="0" | ||
blob_caves_count_max="1" | ||
blob_caves_radius_min="1" | ||
blob_caves_radius_max="1" | ||
blob_caves_strength_min="1.2" | ||
blob_caves_strength_max="2" | ||
cave_childs_min="0" | ||
cave_childs_max="1" | ||
cave_count_min="1" | ||
cave_count_max="2" | ||
cave_strength_min="0.2" | ||
cave_strength_max="1.8" | ||
mountain_count_min="0" | ||
mountain_count_max="0" | ||
mountain_size_min="1" | ||
mountain_size_max="10" | ||
surface_cave_childs_min="0" | ||
surface_cave_childs_max="0" | ||
surface_caves_count_min="0" | ||
surface_caves_count_max="0" | ||
></BitmapCaves> | ||
</Topology> | ||
|
||
<Materials name="robobase"> | ||
<MaterialComponent | ||
_enabled="1" | ||
is_rare="1" | ||
limit_max_y="2048" | ||
limit_min_y="100" | ||
limit_y="0" | ||
material_index="10" | ||
material_max="0.46" | ||
material_min="0.443701" | ||
material_name="gold" | ||
rare_polka_is_boxed="0" | ||
rare_polka_probability="0.960871" | ||
rare_polka_radius_high="0.771429" | ||
rare_polka_radius_low="0.357143" | ||
rare_required_max="10" | ||
rare_required_min="0" | ||
rare_scale_x="0.0100004" | ||
rare_scale_y="0.00357165" | ||
rare_use_perlin="0" | ||
rare_use_polka="1" | ||
></MaterialComponent> | ||
|
||
<MaterialComponent | ||
_enabled="1" | ||
is_rare="0" | ||
limit_max_y="424.229" | ||
limit_min_y="-1024" | ||
limit_y="1" | ||
material_index="10" | ||
material_max="0.53" | ||
material_min="0.45" | ||
material_name="soil" | ||
rare_polka_is_boxed="1" | ||
rare_polka_probability="0.2" | ||
rare_polka_radius_high="0.65" | ||
rare_polka_radius_low="0.2" | ||
rare_required_max="10" | ||
rare_required_min="0.2" | ||
rare_scale_x="0.05" | ||
rare_scale_y="0.05" | ||
rare_use_perlin="0" | ||
rare_use_polka="1" | ||
></MaterialComponent> | ||
|
||
<MaterialComponent | ||
_enabled="1" | ||
is_rare="0" | ||
limit_max_y="2048" | ||
limit_min_y="100" | ||
limit_y="0" | ||
material_index="10" | ||
material_max="0.95" | ||
material_min="0.53" | ||
material_name="rock_static_grey" | ||
rare_polka_is_boxed="1" | ||
rare_polka_probability="0.2" | ||
rare_polka_radius_high="0.65" | ||
rare_polka_radius_low="0.2" | ||
rare_required_max="10" | ||
rare_required_min="0.2" | ||
rare_scale_x="0.05" | ||
rare_scale_y="0.05" | ||
rare_use_perlin="0" | ||
rare_use_polka="1" | ||
></MaterialComponent> | ||
|
||
<MaterialComponent | ||
_enabled="1" | ||
is_rare="1" | ||
limit_max_y="2048" | ||
limit_min_y="100" | ||
limit_y="0" | ||
material_index="10" | ||
material_max="1.2" | ||
material_min="1.1" | ||
material_name="radioactive_liquid" | ||
rare_polka_is_boxed="1" | ||
rare_polka_probability="0.357143" | ||
rare_polka_radius_high="0.464286" | ||
rare_polka_radius_low="0.2428571" | ||
rare_required_max="10" | ||
rare_required_min="0.371429" | ||
rare_scale_x="0.0214286" | ||
rare_scale_y="0.0214286" | ||
rare_use_perlin="0" | ||
rare_use_polka="1" | ||
></MaterialComponent> | ||
|
||
<MaterialComponent | ||
_enabled="1" | ||
is_rare="0" | ||
limit_max_y="2048" | ||
limit_min_y="100" | ||
limit_y="0" | ||
material_index="10" | ||
material_max="3.5" | ||
material_min="0.9" | ||
material_name="rock_static" | ||
rare_polka_is_boxed="1" | ||
rare_polka_probability="0.2" | ||
rare_polka_radius_high="0.65" | ||
rare_polka_radius_low="0.2" | ||
rare_required_max="10" | ||
rare_required_min="0.2" | ||
rare_scale_x="0.05" | ||
rare_scale_y="0.05" | ||
rare_use_perlin="0" | ||
rare_use_polka="1" | ||
></MaterialComponent> | ||
|
||
<!-- this is for the FREEZING biome modifier. tree_probability should initially be 0 --> | ||
<VegetationComponent | ||
_enabled="1" | ||
is_visual="1" | ||
rand_seed="8376.86" | ||
tree_extra_y="0" | ||
tree_image_file="" | ||
tree_image_visual="" | ||
tree_material="snow" | ||
tree_probability="0" | ||
tree_radius_high="0.414286" | ||
tree_radius_low="0.228571" | ||
tree_width="76.1143" | ||
visual_color="0xffb89f6c" | ||
visual_offset_x="3" | ||
visual_offset_y="7.5" | ||
is_grass="1" | ||
grass_requires_neighbors="1" | ||
material_on_top_of="steelmoss_static" | ||
></VegetationComponent> | ||
|
||
<VegetationComponent | ||
_enabled="1" | ||
is_visual="1" | ||
rand_seed="1248" | ||
tree_extra_y="0" | ||
tree_image_file="data/vegetation/vine_growth_1.xml" | ||
tree_image_visual="" | ||
tree_material="ceiling_plant_material" | ||
tree_probability="0.24571" | ||
tree_radius_high="0.635286" | ||
tree_radius_low="0.146757" | ||
tree_width="110.123" | ||
visual_color="0x00b89f6c" | ||
visual_offset_x="3" | ||
visual_offset_y="0" | ||
is_ceiling_plant="1" | ||
></VegetationComponent> | ||
<VegetationComponent | ||
_enabled="1" | ||
is_visual="1" | ||
rand_seed="4575" | ||
tree_extra_y="0" | ||
tree_image_file="data/vegetation/ceiling_vegetation_00$[2-8].png" | ||
tree_image_visual="" | ||
tree_material="ceiling_plant_material" | ||
tree_probability="0.54571" | ||
tree_radius_high="0.635286" | ||
tree_radius_low="0.146757" | ||
tree_width="11.123" | ||
visual_color="0x00b89f6c" | ||
visual_offset_x="0" | ||
visual_offset_y="0" | ||
is_ceiling_plant="1" | ||
></VegetationComponent> | ||
<VegetationComponent | ||
_enabled="1" | ||
is_visual="1" | ||
rand_seed="315" | ||
tree_extra_y="0" | ||
tree_image_file="data/vegetation/hanger_$[1-4].png" | ||
tree_image_visual="" | ||
tree_material="ceiling_plant_material" | ||
tree_probability="0.84571" | ||
tree_radius_high="0.335286" | ||
tree_radius_low="0.146757" | ||
tree_width="6.123" | ||
visual_color="0x00b89f6c" | ||
visual_offset_x="0" | ||
visual_offset_y="0" | ||
is_ceiling_plant="1" | ||
></VegetationComponent> | ||
|
||
</Materials> | ||
|
||
</Biome> |
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
49 changes: 49 additions & 0 deletions
49
data/entities/animals/boss_alchemist/projectile_counter_create_damage.lua
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,49 @@ | ||
dofile_once("data/scripts/lib/utilities.lua") | ||
|
||
function damage_received(damage) | ||
local entity_id = GetUpdatedEntityID() | ||
local x, y = EntityGetTransform(entity_id) | ||
local nearby_ents = EntityGetInRadius(x, y, 50) | ||
|
||
local num_of_shield_ents = 0 | ||
|
||
for i, ent_id in ipairs(nearby_ents) do | ||
if EntityGetFilename(ent_id) == "data/entities/animals/boss_alchemist/projectile_counter.xml" then | ||
num_of_shield_ents = num_of_shield_ents + 1 | ||
end | ||
end | ||
|
||
if num_of_shield_ents < 10 then | ||
--Creates a cap on the number of shields to avoid piercing wands on this dude lagging out the game | ||
local cumulative = 0.0 | ||
local dcomp = 0 | ||
|
||
local s = EntityGetComponent(entity_id, "VariableStorageComponent") | ||
if (s ~= nil) then | ||
for i, v in ipairs(s) do | ||
local name = ComponentGetValue2(v, "name") | ||
|
||
if (name == "damage_received") then | ||
cumulative = ComponentGetValue2(v, "value_float") | ||
|
||
cumulative = cumulative + damage | ||
|
||
ComponentSetValue2(v, "value_float", cumulative) | ||
dcomp = v | ||
end | ||
end | ||
end | ||
|
||
if (damage >= 2.0) or (cumulative >= 3.0) then | ||
local x, y = EntityGetTransform(entity_id) | ||
|
||
local eid = EntityLoad("data/entities/animals/boss_alchemist/projectile_counter.xml", x, y) | ||
EntityAddChild(entity_id, eid) | ||
|
||
if (dcomp ~= NULL_ENTITY) then | ||
cumulative = cumulative - 3.0 | ||
ComponentSetValue2(dcomp, "value_float", cumulative) | ||
end | ||
end | ||
end | ||
end |
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
Oops, something went wrong.