Files
Bubberstation/code/datums/quirks/negative_quirks/poor_aim.dm
Thunder12345 615640fcd4 Breaks up the three quirk code files into individual quirks (#78407)
## 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
2023-09-18 19:31:52 +02:00

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