[MIRROR] Move origin of chef CQC to skillchip (#3004)

* Move origin of chef CQC to skillchip (#56437)

One more intrinsic property of a job that has been moved to an
extrinsic, that won't likely affect many rounds, but now makes more
aspects "lootable".

* Move origin of chef CQC to skillchip

Co-authored-by: coiax <yellowbounder@gmail.com>
This commit is contained in:
SkyratBot
2021-02-01 15:58:49 +00:00
committed by GitHub
co-authored by coiax
parent f7f7becb86
commit 9f6c67c9c6
3 changed files with 24 additions and 10 deletions
+2 -10
View File
@@ -33,7 +33,8 @@
backpack_contents = list(
/obj/item/sharpener = 1,
/obj/item/choice_beacon/ingredient = 1
)
)
skillchips = list(/obj/item/skillchip/job/chef)
/datum/outfit/job/cook/pre_equip(mob/living/carbon/human/H, visualsOnly = FALSE)
..()
@@ -44,12 +45,3 @@
head = /obj/item/clothing/head/soft/mime
if(!visualsOnly)
J.cooks++
/datum/outfit/job/cook/post_equip(mob/living/carbon/human/H, visualsOnly = FALSE)
..()
if(visualsOnly)
return
var/datum/martial_art/cqc/under_siege/justacook = new
justacook.teach(H)
@@ -0,0 +1,21 @@
/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 class='notice'>You can visualize how to defend your kitchen with martial arts.</span>"
deactivate_message = "<span class='notice'>You forget how to control your muscles to execute kicks, slams and restraints while in a kitchen environment.</span>"
var/datum/martial_art/cqc/under_siege/style
/obj/item/skillchip/job/chef/Initialize()
. = ..()
style = new
/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.remove(user)
return ..()
+1
View File
@@ -2240,6 +2240,7 @@
#include "code\modules\library\skill_learning\skill_station.dm"
#include "code\modules\library\skill_learning\skillchip.dm"
#include "code\modules\library\skill_learning\job_skillchips\_job.dm"
#include "code\modules\library\skill_learning\job_skillchips\chef.dm"
#include "code\modules\library\skill_learning\job_skillchips\psychologist.dm"
#include "code\modules\library\skill_learning\job_skillchips\research_director.dm"
#include "code\modules\library\skill_learning\job_skillchips\roboticist.dm"