mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
fish sounds (#86445)
## About The Pull Request sounds fishy around here <details> https://github.com/user-attachments/assets/9131a1c5-a3ad-4fa8-b858-9c3ddba3d450 https://github.com/user-attachments/assets/0d7381a8-b0c3-4796-befa-b71e4819aaa8 https://github.com/user-attachments/assets/a714c857-11bd-42b4-adaf-7447c236711e https://github.com/user-attachments/assets/f8697933-1e5f-4403-b3f2-959e6e0c8254 https://github.com/user-attachments/assets/72530952-14ea-4c97-aa32-76c80036fff5 </details> ## Why It's Good For The Game  ## Changelog 🆑 grungussuss sound: fish now have new sounds /🆑 --------- Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
@@ -11,7 +11,10 @@
|
||||
throw_range = 8
|
||||
attack_verb_continuous = list("slaps", "whacks")
|
||||
attack_verb_simple = list("slap", "whack")
|
||||
hitsound = 'sound/weapons/slap.ogg'
|
||||
hitsound = SFX_DEFAULT_FISH_SLAP
|
||||
drop_sound = 'sound/creatures/fish/fish_drop1.ogg'
|
||||
pickup_sound = SFX_FISH_PICKUP
|
||||
sound_vary = TRUE
|
||||
///The grind results of the fish. They scale with the weight of the fish.
|
||||
grind_results = list(/datum/reagent/blood = 5, /datum/reagent/consumable/liquidgibs = 5)
|
||||
obj_flags = UNIQUE_RENAME
|
||||
@@ -282,6 +285,8 @@
|
||||
|
||||
///Reset weapon-related variables of this items and recalculates those values based on the fish weight and size.
|
||||
/obj/item/fish/proc/update_fish_force()
|
||||
if(force >= 15 && hitsound == SFX_ALT_FISH_SLAP)
|
||||
hitsound = SFX_DEFAULT_FISH_SLAP
|
||||
force = initial(force)
|
||||
throwforce = initial(throwforce)
|
||||
throw_range = initial(throw_range)
|
||||
@@ -310,6 +315,9 @@
|
||||
|
||||
SEND_SIGNAL(src, COMSIG_FISH_FORCE_UPDATED, weight_rank, bonus_malus)
|
||||
|
||||
if(force >=15 && hitsound == SFX_DEFAULT_FISH_SLAP) // don't override special attack sounds
|
||||
hitsound = SFX_ALT_FISH_SLAP // do more damage - do heavier slap sound
|
||||
|
||||
///A proc that makes the fish slightly stronger or weaker if there's a noticeable discrepancy between size and weight.
|
||||
/obj/item/fish/proc/calculate_fish_force_bonus(bonus_malus)
|
||||
demolition_mod += bonus_malus * 0.1
|
||||
|
||||
Reference in New Issue
Block a user