Commit 63947d8
authored
Sneak attacks (#5674)
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
## About The Pull Request
Bounty https://hackmd.io/@Avalon-Proto/SJGtMe5H9We
Sneak attacks require you to be directly behind someone in not in combat
while sneaking. You also need to be using a "Swift" balance or blunt
intent and have to have 10 sneak skill at the lowest.
It won't work if they are laying down, dead or unconcious and it also
works on living mobs but I doubt you can currently utilise this against
AI mobs.
They do up to ~50% more damage and up to a flat ~15% higher chance to
knockout with blunt weapons applied to the head.
~ because skill scaling is strange and you can get above 60 so it can be
higher and I think that's fine
<!-- Describe The Pull Request. Please be sure every change is
documented or this can delay review and even discourage maintainers from
merging your PR! -->
## Why It's Good For The Game
<!-- Argue for the merits of your changes and how they benefit the game,
especially if they are controversial and/or far reaching. If you can't
actually explain WHY what you are doing will improve the game, then it
probably isn't good for the game in the first place. -->
## Changelog
<!-- If your PR modifies aspects of the game that can be concretely
observed by players or admins you should add a changelog. If your change
does NOT meet this description, remove this section. Please note that
maintainers freely reserve the right to remove and add tags should they
deem it appropriate. You can attempt to finagle the system all you want,
but it's best to shoot for clear communication right off the bat. -->
<!-- !! Do not add whitespace in-between the entries, do not change the
tags and do not leave the tags without any entries. -->
:cl:
add: Added stealth strikes, doing extra damage to unsuspecting targets
(Not in combat mode, need to be sneaking behind them). Sneak attacks do
up to ~50% extra damage and have up to ~15% extra chance to knockout
based on sneak.
/:cl:
<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->
## Pre-Merge Checklist
<!-- Don't bother filling these in while creating your Pull Request,
just click the checkboxes after the Pull Request is opened and you are
redirected to the page. -->
- [ ] You tested this on a local server.
- [ ] This code did not runtime during testing.
- [ ] You documented all of your changes.
<!-- Neither the compiler nor workflow checks are perfect at detecting
runtimes and errors. It is important to test your code/feature/fix
locally. -->1 parent a205e89 commit 63947d8
File tree
9 files changed
+309
-252
lines changed- code
- __DEFINES
- _onclick
- game/objects/items/weapons/melee
- modules
- combat
- crafting/alchemy
- mob/living/carbon
- human
- surgery/bodyparts
9 files changed
+309
-252
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| 439 | + | |
439 | 440 | | |
440 | 441 | | |
| 442 | + | |
441 | 443 | | |
442 | 444 | | |
443 | 445 | | |
444 | 446 | | |
445 | 447 | | |
446 | 448 | | |
447 | 449 | | |
448 | | - | |
| 450 | + | |
449 | 451 | | |
450 | 452 | | |
451 | 453 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | 454 | | |
459 | 455 | | |
460 | | - | |
| 456 | + | |
| 457 | + | |
461 | 458 | | |
462 | 459 | | |
463 | | - | |
| 460 | + | |
464 | 461 | | |
465 | | - | |
| 462 | + | |
466 | 463 | | |
| 464 | + | |
467 | 465 | | |
468 | | - | |
| 466 | + | |
| 467 | + | |
469 | 468 | | |
470 | 469 | | |
471 | 470 | | |
472 | 471 | | |
473 | 472 | | |
474 | 473 | | |
| 474 | + | |
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
| |||
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
491 | | - | |
492 | | - | |
| 491 | + | |
| 492 | + | |
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
507 | 506 | | |
508 | 507 | | |
509 | 508 | | |
| |||
515 | 514 | | |
516 | 515 | | |
517 | 516 | | |
518 | | - | |
519 | | - | |
520 | | - | |
| 517 | + | |
| 518 | + | |
521 | 519 | | |
522 | 520 | | |
523 | 521 | | |
524 | | - | |
| 522 | + | |
525 | 523 | | |
526 | 524 | | |
527 | | - | |
528 | 525 | | |
529 | 526 | | |
530 | | - | |
531 | 527 | | |
532 | 528 | | |
533 | | - | |
534 | | - | |
535 | | - | |
| 529 | + | |
| 530 | + | |
536 | 531 | | |
537 | 532 | | |
538 | 533 | | |
539 | 534 | | |
540 | 535 | | |
541 | | - | |
542 | 536 | | |
543 | 537 | | |
544 | 538 | | |
545 | 539 | | |
546 | 540 | | |
547 | | - | |
548 | 541 | | |
549 | 542 | | |
550 | | - | |
551 | 543 | | |
552 | 544 | | |
553 | | - | |
554 | 545 | | |
555 | | - | |
| 546 | + | |
556 | 547 | | |
557 | 548 | | |
558 | 549 | | |
559 | 550 | | |
560 | | - | |
561 | | - | |
562 | | - | |
| 551 | + | |
| 552 | + | |
563 | 553 | | |
564 | 554 | | |
565 | 555 | | |
| |||
595 | 585 | | |
596 | 586 | | |
597 | 587 | | |
| 588 | + | |
598 | 589 | | |
599 | 590 | | |
600 | | - | |
| 591 | + | |
601 | 592 | | |
602 | 593 | | |
| 594 | + | |
603 | 595 | | |
604 | 596 | | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
| 597 | + | |
609 | 598 | | |
610 | 599 | | |
611 | 600 | | |
612 | 601 | | |
613 | 602 | | |
614 | 603 | | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
615 | 607 | | |
616 | 608 | | |
617 | 609 | | |
| |||
637 | 629 | | |
638 | 630 | | |
639 | 631 | | |
640 | | - | |
| 632 | + | |
641 | 633 | | |
642 | 634 | | |
643 | 635 | | |
644 | 636 | | |
645 | 637 | | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
674 | 678 | | |
675 | | - | |
676 | | - | |
| 679 | + | |
677 | 680 | | |
678 | 681 | | |
679 | 682 | | |
| |||
820 | 823 | | |
821 | 824 | | |
822 | 825 | | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
823 | 829 | | |
824 | 830 | | |
825 | 831 | | |
826 | | - | |
827 | | - | |
| 832 | + | |
828 | 833 | | |
829 | 834 | | |
830 | 835 | | |
| 836 | + | |
831 | 837 | | |
832 | 838 | | |
833 | | - | |
834 | | - | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
835 | 845 | | |
836 | 846 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
397 | | - | |
| 397 | + | |
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| |||
0 commit comments