mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-10 23:54:14 +01:00
6f37db300b
## About The Pull Request Non-standard null-rods (the skateboard, bow, revolver, carpsie plush, and eswords) did not receive all the common characteristics of regular null rods in #93394. In particular, they were not given the `UNIQUE_RENAME` obj flag, and they did not receive the ability to track how many cultists they've crit/killed and be turned into cult weapons when sacrificed. This PR corrects that by extracting the cult kill tracking behavior to a component, while doing the following refactors to ensure complete compatibility: - Skateboard items now move themselves into the skateboard vehicle they spawn on use, instead of deleting themselves. This was necessary for the holy board to keep its custom name/desc and cultist kill count. - Guns (which the bow technically is) will track cultists killed/crit with bullets fired from them by a mob with a holy role. - A signal can now be used for an item to provide an arbitrary response when an offer rune underneath it is activated. ## Why It's Good For The Game I just wanted the holy eswords to be renameable for chaplains to provide plausible deniability for the possession of actual eswords, but after I discovered this consistency issue, and felt the need to fix it. ## Changelog 🆑 fix: The holy energy swords and the carp-sie plushie can once again be renamed fix: The holy energy swords and the carp-sie plushie can once again be sacrificed by cultists to spawn different weapons based on how many unique cultists the chaplain has crit or killed with them qol: The holy skateboard can be renamed like other null rod variants can fix: Unusual null rod variants like the holy skateboard and bow can now be sacrificed by cultists to spawn different weapons based on how many unique cultists the chaplain has crit or killed with them. The bow and the burdened chaplain's revolver, in particular, also count cultists crit or killed by arrows/bullets fired from them by the chaplain. /🆑
66 lines
2.8 KiB
Plaintext
66 lines
2.8 KiB
Plaintext
|
|
/obj/item/melee/skateboard
|
|
name = "skateboard"
|
|
desc = "A skateboard. It can be placed on its wheels and ridden, or used as a radical weapon."
|
|
icon = 'icons/mob/rideables/vehicles.dmi'
|
|
icon_state = "skateboard_held"
|
|
inhand_icon_state = "skateboard"
|
|
force = 12
|
|
throwforce = 4
|
|
w_class = WEIGHT_CLASS_NORMAL
|
|
attack_verb_continuous = list("smacks", "whacks", "slams", "smashes")
|
|
attack_verb_simple = list("smack", "whack", "slam", "smash")
|
|
custom_materials = list(/datum/material/iron = SHEET_MATERIAL_AMOUNT * 10)
|
|
///The vehicle counterpart for the board
|
|
var/board_item_type = /obj/vehicle/ridden/scooter/skateboard
|
|
|
|
/obj/item/melee/skateboard/attack_self(mob/user)
|
|
var/obj/vehicle/ridden/scooter/skateboard/board = new board_item_type(get_turf(user), src)//this probably has fucky interactions with telekinesis but for the record it wasn't my fault
|
|
board.buckle_mob(user)
|
|
forceMove(board)
|
|
|
|
/obj/item/melee/skateboard/improvised
|
|
name = "improvised skateboard"
|
|
desc = "A jury-rigged skateboard. It can be placed on its wheels and ridden, or used as a radical weapon."
|
|
board_item_type = /obj/vehicle/ridden/scooter/skateboard/improvised
|
|
|
|
/obj/item/melee/skateboard/pro
|
|
name = "skateboard"
|
|
desc = "An EightO brand professional skateboard. It looks sturdy and well made."
|
|
icon_state = "skateboard2_held"
|
|
inhand_icon_state = "skateboard2"
|
|
board_item_type = /obj/vehicle/ridden/scooter/skateboard/pro
|
|
custom_premium_price = PAYCHECK_COMMAND * 5
|
|
|
|
/obj/item/melee/skateboard/hoverboard
|
|
name = "hoverboard"
|
|
desc = "A blast from the past, so retro!"
|
|
icon_state = "hoverboard_red_held"
|
|
inhand_icon_state = "hoverboard_red"
|
|
board_item_type = /obj/vehicle/ridden/scooter/skateboard/hoverboard
|
|
custom_premium_price = PAYCHECK_COMMAND * 5.4 //If I can't make it a meme I'll make it RAD
|
|
|
|
/obj/item/melee/skateboard/hoverboard/admin
|
|
name = "Board Of Directors"
|
|
desc = "The engineering complexity of a spaceship concentrated inside of a board. Just as expensive, too."
|
|
icon_state = "hoverboard_nt_held"
|
|
inhand_icon_state = "hoverboard_nt"
|
|
board_item_type = /obj/vehicle/ridden/scooter/skateboard/hoverboard/admin
|
|
|
|
/obj/item/melee/skateboard/holyboard
|
|
name = "holy skateboard"
|
|
desc = "A board blessed by the gods with the power to grind for our sins. Has the initials 'J.C.' on the underside."
|
|
icon_state = "hoverboard_holy_held"
|
|
inhand_icon_state = "hoverboard_holy"
|
|
force = 18
|
|
throwforce = 6
|
|
w_class = WEIGHT_CLASS_NORMAL
|
|
obj_flags = parent_type::obj_flags | UNIQUE_RENAME
|
|
attack_verb_continuous = list("bashes", "crashes", "grinds", "skates")
|
|
attack_verb_simple = list("bash", "crash", "grind", "skate")
|
|
board_item_type = /obj/vehicle/ridden/scooter/skateboard/hoverboard/holyboarded
|
|
|
|
/obj/item/melee/skateboard/holyboard/Initialize(mapload)
|
|
. = ..()
|
|
AddElement(/datum/element/nullrod_core)
|