-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Еретический серп может заблокировать снаряд с шансом 30%. Не-еретик л…
…ибо получит фигу, если попытается использовать нож, либо его парализует и он получит удар как если бы его ударили этим же клинком с вероятностью 50%
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
tff_modular/master_files/code/modules/antagonists/heretic/items/heretic_blades.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters