Consistency/data/entities/items/pickup/goldnugget_50.xml

129 lines
3.0 KiB
XML

<Entity name="unknown" tags="item_physics,gold_nugget" >
<!-- physical presence -->
<UIInfoComponent
_tags="enabled_in_world"
name="$item_goldnugget">
</UIInfoComponent>
<PhysicsBodyComponent
_tags="enabled_in_world"
uid="1"
allow_sleep="1"
angular_damping="0"
fixed_rotation="0"
is_bullet="0"
linear_damping="0"
auto_clean="0"
hax_fix_going_through_ground="1"
on_death_leave_physics_body="1" >
</PhysicsBodyComponent>
<PhysicsImageShapeComponent
_tags="enabled_in_world"
body_id="1"
centered="1"
image_file="data/items_gfx/goldnugget_9px.png"
material="gold_box2d" >
</PhysicsImageShapeComponent>
<VariableStorageComponent
_tags="enabled_in_world"
name="gold_value"
value_int="25" >
</VariableStorageComponent>
<!-- item -->
<ItemComponent
_tags="enabled_in_world"
auto_pickup="1"
item_name="$item_goldnugget_50"
stats_count_as_item_pick_up="0"
max_child_items="0"
is_pickable="1"
ui_sprite="data/ui_gfx/items/goldnugget.png"
ui_description="Lorem ipsum"
play_pick_sound="0"
preferred_inventory="FULL" >
</ItemComponent>
<HitboxComponent
_tags="enabled_in_world"
aabb_min_x="-3"
aabb_max_x="3"
aabb_min_y="-5"
aabb_max_y="0" >
</HitboxComponent>
<LuaComponent
_tags="enabled_in_world"
script_item_picked_up="data/scripts/items/gold_pickup.lua" >
</LuaComponent>
<LuaComponent
_tags="enabled_in_world"
script_source_file="data/scripts/perks/gold_explosion.lua"
execute_on_added="1"
remove_after_executed="1"
>
</LuaComponent>
<!-- particle glitter -->
<SpriteParticleEmitterComponent
_tags="enabled_in_world"
sprite_file="data/particles/shine_07.xml"
lifetime="0.3"
emission_interval_min_frames="100"
emission_interval_max_frames="500"
count_min="1"
count_max="1"
additive="1"
emissive="0"
scale.x="1.0"
scale.y="1.0"
sprite_random_rotation="1"
randomize_scale.min_x="-0.1"
randomize_scale.max_x="0.1"
randomize_scale.min_y="-0.1"
randomize_scale.max_y="0.1"
randomize_position.min_y="-5"
randomize_position.max_y="5"
randomize_position.min_x="-5"
randomize_position.max_x="5"
randomize_animation_speed_coeff.min="0.667"
randomize_animation_speed_coeff.max="1.0"
>
</SpriteParticleEmitterComponent>
<SpriteParticleEmitterComponent
_tags="enabled_in_world"
sprite_file="data/particles/shine_08.xml"
lifetime="0.2"
randomize_lifetime.min="0.1"
randomize_lifetime.max="0.8"
emission_interval_min_frames="50"
emission_interval_max_frames="200"
count_min="1"
count_max="1"
additive="1"
emissive="0"
scale.x="1.0"
scale.y="1.0"
sprite_random_rotation="1"
randomize_scale.min_x="-0.1"
randomize_scale.max_x="0.1"
randomize_scale.min_y="-0.1"
randomize_scale.max_y="0.1"
randomize_position.min_y="-4"
randomize_position.max_y="4"
randomize_position.min_x="-4"
randomize_position.max_x="4"
randomize_animation_speed_coeff.min="0.667"
randomize_animation_speed_coeff.max="1.0"
>
</SpriteParticleEmitterComponent>
</Entity>