mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 20:15:47 +01:00
Energy Katana Teleport Attack (and misc. tweaks) (#91825)
## About The Pull Request 1. The Energy Katana, when clicking on a mob, no longer refuses to teleport. It will instead teleport you adjacent to the mob (to the tile closest to your origin) and immediately perform an attack. 2. Energy Katana is now a bit more consistent about what you can and cannot teleport to, now abiding by the same rules as the heirophant staff - you can teleport onto tables, but you can't teleport into dense objects by clicking on the tile instead of the object. 3. The Energy Katana now has `NEEDS_PERMIT` flag, like the Energy Sword, meaning Beepsky will consider it a threat (but it won't hunt down Ninjas over it) Also added pass_flags_self bitfield and updated pass_flags bitfield. ## Why It's Good For The Game I ran around with it for like 3 seconds and found it a little clunky. So I just cleaned it up a bit to make it 1. easier to use 2. cooler to use The permit thing was just making it consistent with other melee weapons ## Changelog 🆑 Melbert qol: Energy Katana is now a bit more consistent about what you can and cannot teleport to, now abiding by the same rules as the heirophant staff. IE, you can now teleport onto tables. add: Energy Katana now has a "teleport attack" - if you click on a mob, you will teleport adjacent to them and immediately perform an attack! add: Energy Katana is now considered a threatening weapon by secbots. Ninjas will be unaffected, but if you loot one off a dead ninja and don't have a weapons permit, it might chase after you. /🆑
This commit is contained in:
@@ -243,11 +243,6 @@
|
||||
user.balloon_alert(user, "destination out of range!")
|
||||
return FALSE
|
||||
|
||||
var/turf/target_turf = get_turf(target)
|
||||
if(target_turf.is_blocked_turf_ignore_climbable())
|
||||
user.balloon_alert(user, "destination blocked!")
|
||||
return FALSE
|
||||
|
||||
. = ..()
|
||||
|
||||
var/obj/item/hierophant_club/club = target
|
||||
|
||||
Reference in New Issue
Block a user