Skip to content

Commit

Permalink
refactor: Entity名の修正、print文の削除
Browse files Browse the repository at this point in the history
  • Loading branch information
den3606 committed Jul 11, 2022
1 parent 5b54ae5 commit d343eeb
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Entity name="start_voice">
<Entity name="damage_received.heavy_damage_voice">
<AudioComponent file="mods/akanechan_voice/files/audio/mod_voices.snd"
event_root="akanechan"
audio_physics_material="character_player"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Entity name="start_voice">
<Entity name="damage_received.low_helth_damage_voice">
<AudioComponent file="mods/akanechan_voice/files/audio/mod_voices.snd"
event_root="akanechan"
audio_physics_material="character_player"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Entity name="start_voice">
<Entity name="damage_received.mild_damage_voice">
<AudioComponent file="mods/akanechan_voice/files/audio/mod_voices.snd"
event_root="akanechan"
audio_physics_material="character_player"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Entity name="start_voice">
<Entity name="damage_received.on_fire_damage_voice">
<AudioComponent file="mods/akanechan_voice/files/audio/mod_voices.snd"
event_root="akanechan"
audio_physics_material="character_player"
Expand Down
2 changes: 1 addition & 1 deletion files/entities/sounds/enemy/pickup/wand.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Entity name="start_voice">
<Entity name="enemy.pickup.wand">
<AudioComponent file="mods/akanechan_voice/files/audio/mod_voices.snd"
event_root="akanechan"
audio_physics_material="character_player"
Expand Down
2 changes: 1 addition & 1 deletion files/entities/sounds/kick_voice.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Entity name="start_voice">
<Entity name="kick_voice">
<AudioComponent file="mods/akanechan_voice/files/audio/mod_voices.snd"
event_root="akanechan"
audio_physics_material="character_player"
Expand Down
2 changes: 1 addition & 1 deletion files/entities/sounds/pickup/refresher.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Entity name="refresher">
<Entity name="pickup.refresher">
<AudioComponent file="mods/akanechan_voice/files/audio/mod_voices.snd"
event_root="akanechan"
audio_physics_material="character_player"
Expand Down
2 changes: 1 addition & 1 deletion files/entities/sounds/pickup/shop_wand.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Entity name="start_voice">
<Entity name="pickup.shop_wand">
<AudioComponent file="mods/akanechan_voice/files/audio/mod_voices.snd"
event_root="akanechan"
audio_physics_material="character_player"
Expand Down
2 changes: 1 addition & 1 deletion files/entities/sounds/pickup/temple_health.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Entity name="refresher">
<Entity name="pickup.temple_health">
<AudioComponent file="mods/akanechan_voice/files/audio/mod_voices.snd"
event_root="akanechan"
audio_physics_material="character_player"
Expand Down
2 changes: 1 addition & 1 deletion files/entities/sounds/pickup/wand.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Entity name="start_voice">
<Entity name="pickup.wand">
<AudioComponent file="mods/akanechan_voice/files/audio/mod_voices.snd"
event_root="akanechan"
audio_physics_material="character_player"
Expand Down
2 changes: 1 addition & 1 deletion files/entities/sounds/throw/item_voice.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Entity name="start_voice">
<Entity name="throw.item_voice">
<AudioComponent file="mods/akanechan_voice/files/audio/mod_voices.snd"
event_root="akanechan"
audio_physics_material="character_player"
Expand Down
2 changes: 1 addition & 1 deletion files/entities/sounds/throw/wand_voice.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Entity name="start_voice">
<Entity name="throw.wand_voice">
<AudioComponent file="mods/akanechan_voice/files/audio/mod_voices.snd"
event_root="akanechan"
audio_physics_material="character_player"
Expand Down
3 changes: 1 addition & 2 deletions files/scripts/player/throw_item.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dofile_once("mods/akanechan_voice/files/scripts/lib/utilities.lua")

function throw_item(from_x, from_y, to_x, to_y)
print("throw item")
p("throw item")
local player_pos_x, player_pos_y = EntityGetTransform(getPlayerEntity())
local r = math.floor(calcRadius(player_pos_x, player_pos_y, from_x, from_y) + 0.5)
if r <= 9 then
Expand All @@ -11,7 +11,6 @@ end

function throwing_item()
local player_entity_id = getPlayerEntity()

local akanechan_voice = SoundPlayer:seachSoundPlayer(player_entity_id, AKANECHAN.SOUND_PLAYER_NAME)
SoundPlayer:registerOnlyEmptySoundEntity(akanechan_voice, "mods/akanechan_voice/files/entities/sounds/throw/item_voice.xml")
end

0 comments on commit d343eeb

Please sign in to comment.