Spam fixes

This commit is contained in:
joep van der velden
2020-07-26 12:16:03 +02:00
parent 59280183bd
commit 299f6384e0
2 changed files with 6 additions and 3 deletions
+2
View File
@@ -320,6 +320,8 @@ This is always put in the attack log.
var/area/A = get_area(MT)
if(A && A.hide_attacklogs)
loglevel = ATKLOG_ALMOSTALL
else
loglevel = ATKLOG_ALL // Hitting an object. Not a mob
if(isLivingSSD(target)) // Attacks on SSDs are shown to admins with any log level except ATKLOG_NONE. Overrides custom level
loglevel = ATKLOG_FEW
+4 -3
View File
@@ -564,8 +564,8 @@
if(user.obj_damage)
animal_damage = user.obj_damage
animal_damage = min(animal_damage, 20*user.environment_smash)
user.create_attack_log("<font color='red'>attacked [name]</font>")
add_attack_logs(user, OCCUPANT_LOGGING, "Animal attacked mech [src]")
if(animal_damage)
add_attack_logs(user, OCCUPANT_LOGGING, "Animal attacked mech [src]")
attack_generic(user, animal_damage, user.melee_damage_type, "melee", play_soundeffect)
return TRUE
@@ -781,7 +781,8 @@
to_chat(user, "<span class='notice'>You stop installing [M].</span>")
else
add_attack_logs(user, OCCUPANT_LOGGING, "attacked mech '[src]' using [W]")
if(W.force)
add_attack_logs(user, OCCUPANT_LOGGING, "attacked mech '[src]' using [W]")
return ..()