mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-16 04:34:21 +00:00
## About The Pull Request 123 changed files and multiple crashes after writing broken regex, I replaced most remains of direct spans with macros. This cleans up the code and makes it easier to work with in general, see justification for the original PR. I also fixed a bunch of broken and/or unclosed spans here too. I intentionally avoided replacing spans with multiple classes (in most cases) and spans in the middle of strings as it would impact readability (in my opinion at least) and could be done later if required. ## Why It's Good For The Game Cleaner code, actually using our macros, fixes borked HTML in some places. See original PR. ## Changelog Nothing player-facing
24 lines
1.1 KiB
Plaintext
24 lines
1.1 KiB
Plaintext
/obj/item/skillchip/job/chef
|
|
name = "B0RK-X3 skillchip" // bork bork bork
|
|
desc = "This biochip faintly smells of garlic, which is odd for something that is normally wedged inside a user's brain. Consult a dietician before use."
|
|
skill_name = "Close Quarters Cooking"
|
|
skill_description = "A specialised form of self defence, developed by skilled sous-chef de cuisines. No man fights harder than a chef to defend his kitchen."
|
|
skill_icon = "utensils"
|
|
activate_message = span_notice("You can visualize how to defend your kitchen with martial arts.")
|
|
deactivate_message = span_notice("You forget how to control your muscles to execute kicks, slams and restraints while in a kitchen environment.")
|
|
/// The Chef CQC given by the skillchip.
|
|
var/datum/martial_art/cqc/under_siege/style
|
|
|
|
/obj/item/skillchip/job/chef/Initialize(mapload)
|
|
. = ..()
|
|
style = new
|
|
style.refresh_valid_areas()
|
|
|
|
/obj/item/skillchip/job/chef/on_activate(mob/living/carbon/user, silent = FALSE)
|
|
. = ..()
|
|
style.teach(user, make_temporary = TRUE)
|
|
|
|
/obj/item/skillchip/job/chef/on_deactivate(mob/living/carbon/user, silent = FALSE)
|
|
style.fully_remove(user)
|
|
return ..()
|