Taj & Tesh hearing tweaks (#8994)

* big heckin chonker ultragigamega-ears!!!!

* slight balance tweak

* tesh no longer have four ears so they no longer have superultragigamegahearing

* its ok i couldnt figure out between() either lmao
This commit is contained in:
Varlaisvea
2023-03-12 11:46:31 -08:00
committed by GitHub
parent f490b9c191
commit 6ebe75ca2a
7 changed files with 14 additions and 3 deletions
@@ -1670,3 +1670,6 @@
/mob/living/carbon/human/leaves_tracks_type()
return species.get_move_trail(src)
/mob/living/carbon/human/hearing_boost_range()
return (hearing_boost_range + species.hearboost)
@@ -53,6 +53,7 @@
var/blood_level_fatal = 0.4 //"Fatal" blood level; below this, you take extremely high oxydamage
var/hunger_factor = 0.05 // Multiplier for hunger.
var/active_regen_mult = 1 // Multiplier for 'Regenerate' power speed, in human_powers.dm
var/hearboost = 0 //Extra ranger on whisper hearing. 0 is adjacent.
var/taste_sensitivity = TASTE_NORMAL // How sensitive the species is to minute tastes.
var/allergens = null // Things that will make this species very sick
@@ -197,6 +197,7 @@
species_language = LANGUAGE_SIIK
health_hud_intensity = 2.5
chem_strength_alcohol = 1.25
hearboost = 1 //Sensitive ears.
min_age = 17
max_age = 80
@@ -55,6 +55,7 @@
gluttonous = 1
blood_volume = 400
hunger_factor = 0.2
hearboost = 1 //Big heckin chonker ultragigamega-ears.
ambiguous_genders = TRUE
+3 -3
View File
@@ -331,20 +331,20 @@ var/global/list/channel_to_radio_key = new
var/dst = get_dist(get_turf(M),get_turf(src))
var/runechat_enabled = M.client?.is_preference_enabled(/datum/client_preference/runechat_mob)
if(dst <= message_range || (M.stat == DEAD && !forbid_seeing_deadchat)) //Inside normal message range, or dead with ears (handled in the view proc)
if(dst <= min(message_range + M.hearing_boost_range(), world.view) || (M.stat == DEAD && !forbid_seeing_deadchat)) //Inside normal message range, boosted whisper range, or dead with ears (handled in the view proc)
if(M.client && !runechat_enabled)
var/image/I1 = listening[M] || speech_bubble
images_to_clients[I1] |= M.client
M << I1
M.hear_say(message_pieces, verb, italics, src, speech_sound, sound_vol)
if(whispering && !isobserver(M)) //Don't even bother with these unless whispering
if(dst > message_range && dst <= w_scramble_range) //Inside whisper scramble range
if((message_range + M.hearing_boost_range() < dst) && (w_scramble_range + M.hearing_boost_range() >= dst)) //Within scramble range but not normal range
if(M.client && !runechat_enabled)
var/image/I2 = listening[M] || speech_bubble
images_to_clients[I2] |= M.client
M << I2
M.hear_say(stars_all(message_pieces), verb, italics, src, speech_sound, sound_vol*0.2)
if(dst > w_scramble_range && dst <= world.view) //Inside whisper 'visible' range
if((w_scramble_range + M.hearing_boost_range()) < dst && world.view >= dst) //Within visible range but not scramble range
M.show_message("<span class='game say'><span class='name'>[name]</span> [w_not_heard].</span>", 2)
//Object message delivery
+3
View File
@@ -1205,3 +1205,6 @@
to_chat(src, SPAN_WARNING("You aren't dextrous enough to [target ? "use \the [target]" : "do that"]."))
return FALSE
return TRUE
/mob/proc/hearing_boost_range()
return hearing_boost_range
+2
View File
@@ -157,6 +157,8 @@
var/can_be_antagged = FALSE // To prevent pAIs/mice/etc from getting antag in autotraitor and future auto- modes. Uses inheritance instead of a bunch of typechecks.
var/hearing_boost_range = 0 //Extra range for whisper hearing, in tiles. Can also be adjusted for a whole species via hearboost species var.
//Generic list for proc holders. Only way I can see to enable certain verbs/procs. Should be modified if needed.
var/proc_holder_list[] = list()//Right now unused.
//Also unlike the spell list, this would only store the object in contents, not an object in itself.