Skip to content

Commit

Permalink
Еретический серп может заблокировать снаряд с шансом 30%. Не-еретик л…
Browse files Browse the repository at this point in the history
…ибо получит фигу, если попытается использовать нож, либо его парализует и он получит удар как если бы его ударили этим же клинком с вероятностью 50%
  • Loading branch information
delingar committed Jun 29, 2024
1 parent 15b03bd commit d472596
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Даёт серпу еретика возможность блокировать пули и лазеры с шансом 30%.
// Не-еретики имеют шанс 50% быть порезанными клинком и застаненными на 5 секунд(Стан такой же как при попытке ударить клинком)
/obj/item/melee/sickly_blade/hit_reaction(mob/living/carbon/human/owner, atom/movable/hitby, attack_text, final_block_chance, damage, attack_type, damage_type)
if(!IS_HERETIC_OR_MONSTER(owner))
if(prob(50) && attack_type == PROJECTILE_ATTACK)
to_chat(owner, span_danger("You feel a pulse of alien intellect lash out at your mind! It pushes you to cut yourself!"))
owner.AdjustParalyzed(5 SECONDS)
owner.take_bodypart_damage(20,25,check_armor = FALSE)
var/turf/T = get_turf(owner)
T.visible_message(span_warning("Unknown force pushes [owner] to cut themself by the blade!"))
final_block_chance = 0
return FALSE
else
if(attack_type == PROJECTILE_ATTACK)
final_block_chance = 30
return TRUE
1 change: 1 addition & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -8436,6 +8436,7 @@
#include "modular_nova\modules\xenos_nova_redo\code\xeno_types\warrior.dm"
#include "tff_modular\master_files\code\_HELPERS\global_lists.dm"
#include "tff_modular\master_files\code\datum\quirks\neutral_quirks\burr.dm"
#include "tff_modular\master_files\code\modules\antagonists\heretic\items\heretic_blades.dm"
#include "tff_modular\master_files\code\modules\job\job_blacklist.dm"
#include "tff_modular\master_files\code\modules\job\job_trim.dm"
#include "tff_modular\master_files\code\modules\reagents\recipe\coagulant_recipe.dm"
Expand Down

0 comments on commit d472596

Please sign in to comment.