mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
[MIRROR] Kicks Martial Arts out of the attack chain (yippee), makes it use signals, plus a large clean up of existing martial arts (#26328)
Kicks Martial Arts out of the attack chain (yippee), makes it use signals, plus a large clean up of existing martial arts (#81097) - Kicks Martial Arts out of the attack chain. - All Martial Arts attacks are now handled via unarmed attack or grab signals - This means all martial arts are now technically on the living level, allowing any mob that can unarmed attack to martial arts. Sort of. YMMV. - All martial arts block checking is now handled by the arts themselves, meaning you can selectively decide for a martial arts strike to not be blocked. Maybe good for the future. - A comprehensive cleanup of all existing martial arts. Improving var names, code, adding some missing animation calls, etc. Fixes #74829 Untangles the mess that is martial arts, making it a lot easier to work with the attack chain and making it overall a ton more consistent. 🆑 Melbert refactor: Big martial arts refactor, they should now overall act a ton more consistent. Also technically any mob can do martial arts. Let me know if something is funky. /🆑 --------- Co-authored-by: Useroth <37159550+Useroth@users.noreply.github.com> Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
co-authored by
Useroth
Ghom
parent
c4c124c9b7
commit
8e7ec57fd2
@@ -181,7 +181,7 @@
|
||||
pushed_mob.Knockdown(30)
|
||||
pushed_mob.apply_damage(10, BRUTE)
|
||||
pushed_mob.apply_damage(40, STAMINA)
|
||||
if(user.mind?.martial_art.smashes_tables && user.mind?.martial_art.can_use(user))
|
||||
if(user.mind?.martial_art?.smashes_tables && user.mind?.martial_art.can_use(user))
|
||||
deconstruct(FALSE)
|
||||
playsound(pushed_mob, 'sound/effects/tableslam.ogg', 90, TRUE)
|
||||
pushed_mob.visible_message(span_danger("[user] slams [pushed_mob] onto \the [src]!"), \
|
||||
@@ -198,7 +198,7 @@
|
||||
banged_limb?.receive_damage(30, wound_bonus = extra_wound)
|
||||
pushed_mob.apply_damage(60, STAMINA)
|
||||
take_damage(50)
|
||||
if(user.mind?.martial_art.smashes_tables && user.mind?.martial_art.can_use(user))
|
||||
if(user.mind?.martial_art?.smashes_tables && user.mind?.martial_art.can_use(user))
|
||||
deconstruct(FALSE)
|
||||
playsound(pushed_mob, 'sound/effects/bang.ogg', 90, TRUE)
|
||||
pushed_mob.visible_message(span_danger("[user] smashes [pushed_mob]'s [banged_limb.plaintext_zone] against \the [src]!"),
|
||||
|
||||
Reference in New Issue
Block a user