mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-13 19:22:20 +00:00
## About The Pull Request Separates all the quirts out of the positive, neutral and negative files into their own files. The smoker and alcoholic quirks are left with junkie as they are subtypes of it. ## Why It's Good For The Game These three code files were chonkers at 400, 483 and 1564 lines. They were run on files of types only connected by all being quirks, and made it hard to navigate these files without the user's eye sliding from one quirk to the next. Breaking them down makes it easy to look at the code for a specific quirk indepentently, and also allows looking between multiple quirks without having to scroll around the same file. ## Changelog No player facing changes
20 lines
811 B
Plaintext
20 lines
811 B
Plaintext
/datum/quirk/poor_aim
|
|
name = "Stormtrooper Aim"
|
|
desc = "You've never hit anything you were aiming for in your life."
|
|
icon = FA_ICON_BULLSEYE
|
|
value = -4
|
|
medical_record_text = "Patient possesses a strong tremor in both hands."
|
|
hardcore_value = 3
|
|
mail_goodies = list(/obj/item/cardboard_cutout) // for target practice
|
|
|
|
/datum/quirk/poor_aim/add(client/client_source)
|
|
RegisterSignal(quirk_holder, COMSIG_MOB_FIRED_GUN, PROC_REF(on_mob_fired_gun))
|
|
|
|
/datum/quirk/poor_aim/remove(client/client_source)
|
|
UnregisterSignal(quirk_holder, COMSIG_MOB_FIRED_GUN)
|
|
|
|
/datum/quirk/poor_aim/proc/on_mob_fired_gun(mob/user, obj/item/gun/gun_fired, target, params, zone_override, list/bonus_spread_values)
|
|
SIGNAL_HANDLER
|
|
bonus_spread_values[MIN_BONUS_SPREAD_INDEX] += 10
|
|
bonus_spread_values[MAX_BONUS_SPREAD_INDEX] += 35
|