mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
Replaces the Wizard's High Frequency Blade because I saw Merek get gibbed by it once. (#1081)
## About The Pull Request Replaces the High Frequency Blade the wizard gets with a REAL banhammer, and reduces the spell cost from 3 to 2. Adds REAL banhammers send people to the void temporarily (similar to immortality talisman or void genetic power) on hit. Hitting someone on combat mode with it sends them to permabrig instead, if they're not already in the permabrig. ## Why It's Good For The Game Lets look at what the High Frequency blade does: - 100% block chance against projectiles if wielded. - 50% block chance against melee attacks if wielded. - 25% block chance otherwise. - Average case 17 damage per hit, best case 36 damage per hit. - +20 wound bonus. - +25 bare wound bonus. - Attack cooldown of 0.1 seconds (!!!) - Gibs dead people on hit (very high chance to). - Deconstructs walls on hit. - https://www.youtube.com/watch?v=SYUHaf0BxFo Very insane funny weapon that is way too powerful. This PR replaces that weapon with a funny banhammer that sends people to perma brig or the void instead. ## Proof Of Testing   ## Changelog 🆑 BurgerBB add: Adds REAL banhammers send people to the void temporarily (similar to immortality talisman or void genetic power) on hit. Hitting someone on combat mode with it sends them to permabrig instead, if they're not already in the permabrig. del: Replaces the High Frequency Blade the wizard gets with a REAL banhammer, and reduces the spell cost from 3 to 2. /🆑 <!-- Both 🆑's are required for the changelog to work! You can put your name to the right of the first 🆑 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. --> <!-- By opening a pull request. You have read and understood the repository rules located on the main README.md on this project. --> --------- Co-authored-by: Waterpig <49160555+Majkl-J@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
/obj/item/banhammer/real
|
||||
name = "\improper REAL banhammer"
|
||||
desc = "A hammer that has been banned in several sectors. Careful when using this."
|
||||
desc_controls = "Click to temporarily send someone to the void. Click with combat mode on to permabrig someone. Click in hand to set ban reason."
|
||||
var/static/list/area/areas_to_teleport_to = list( //A list of areas to teleport to. Sorted by priority (first one is set first, if the area exists).
|
||||
/area/station/security/prison/safe,
|
||||
/area/station/security/prison/work,
|
||||
/area/station/security/prison/rec,
|
||||
/area/station/security/prison/upper,
|
||||
/area/station/security/prison,
|
||||
)
|
||||
var/ban_reason = "No reason specified."
|
||||
|
||||
/obj/item/banhammer/real/attack_self(mob/user)
|
||||
|
||||
var/desired_ban_reason = reject_bad_text(tgui_input_text(user, "Ban Reason", "Set Ban Reason", ban_reason, MAX_PLAQUE_LEN))
|
||||
|
||||
if(desired_ban_reason)
|
||||
ban_reason = desired_ban_reason
|
||||
else
|
||||
ban_reason = initial(ban_reason)
|
||||
|
||||
to_chat(user, span_notice("Ban reason set to: \"[ban_reason]\""))
|
||||
|
||||
|
||||
/obj/item/banhammer/real/attack(mob/M, mob/living/user)
|
||||
|
||||
. = ..()
|
||||
|
||||
if(!ishuman(M)) //Humans only.
|
||||
return
|
||||
|
||||
if(M.can_block_magic())
|
||||
M.visible_message(span_danger("[M] resists the effects of the banhammer! They're ban immune!"))
|
||||
return
|
||||
|
||||
if(user.combat_mode) //Perma
|
||||
var/area/current_area = get_area(M)
|
||||
if(!current_area || istype(current_area,/area/station/security/prison)) //Already perma'd.
|
||||
M.visible_message(span_danger("[M] resists the effects of the banhammer! They're already in the permabrig!"))
|
||||
return
|
||||
|
||||
var/turf/turf_to_teleport_to
|
||||
for(var/area/area_path as anything in areas_to_teleport_to)
|
||||
turf_to_teleport_to = get_safe_random_station_turf(area_path)
|
||||
if(!turf_to_teleport_to)
|
||||
continue
|
||||
if(do_teleport(M,turf_to_teleport_to,forced = TRUE,channel = TELEPORT_CHANNEL_MAGIC)) //Rare chance of this actually failing for some reason.
|
||||
dispatch_announcement_to_players(span_noticealien("[M] has been sent to permabrig by [user]: Reason: [ban_reason]"),sound_override = 'sound/effects/adminhelp.ogg')
|
||||
return
|
||||
|
||||
var/turf/T = get_turf(M)
|
||||
if(T) new /obj/effect/immortality_talisman/void(T, M) //Temp
|
||||
@@ -69,3 +69,12 @@
|
||||
/datum/spellbook_entry/item/hugbottle
|
||||
cost = 2
|
||||
limit = 1
|
||||
|
||||
// High Frequency Spellblade. Holy fuck just looking at the code is nonsense holy fuck. Can slash through walls, and also gib people who are dead. Absolutely silly.
|
||||
// Replaces it with a banhammer that can send you to the perma brig because that's funnier.
|
||||
/datum/spellbook_entry/item/highfrequencyblade
|
||||
name = "REAL Banhammer"
|
||||
desc = "A completely REAL Banhammer that sends anyone it hits to the void for a short period of time. Stonger hits send people to the station's permabrig, if one exists."
|
||||
item_path = /obj/item/banhammer/real
|
||||
category = "Offensive"
|
||||
cost = 2
|
||||
|
||||
@@ -8456,6 +8456,7 @@
|
||||
#include "modular_zubbers\code\modules\research\designs\misc_designs.dm"
|
||||
#include "modular_zubbers\code\modules\research\techweb\all_nodes.dm"
|
||||
#include "modular_zubbers\code\modules\security_levels\security_level_datums.dm"
|
||||
#include "modular_zubbers\code\modules\spells\banhammer_item.dm"
|
||||
#include "modular_zubbers\code\modules\spells\spell_types\disabled_spells.dm"
|
||||
#include "modular_zubbers\code\modules\spells\spell_types\nerfed_spells.dm"
|
||||
#include "modular_zubbers\code\modules\status_effects\buffs\frenzy.dm"
|
||||
|
||||
Reference in New Issue
Block a user