-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
319456d
commit c0116c6
Showing
9 changed files
with
124 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
/datum/tutorial/marine/medical_basic | ||
name = "Marine - Medical (Basic)" | ||
tutorial_id = "marine_medical_1" | ||
tutorial_template = /datum/map_template/tutorial/s7x7 | ||
|
||
// START OF SCRIPTING | ||
|
||
/datum/tutorial/marine/medical_basic/start_tutorial(mob/starting_mob) | ||
. = ..() | ||
if(!.) | ||
return | ||
|
||
init_mob() | ||
message_to_player("This is the tutorial for the basics of medical that you will need to know for playing a marine role.") | ||
addtimer(CALLBACK(src, PROC_REF(brute_tutorial)), 4 SECONDS) | ||
|
||
/datum/tutorial/marine/medical_basic/proc/brute_tutorial() | ||
message_to_player("The first kind of damage is <b>Brute</b>, the most common kind. It represents physical trauma from things like punches, weapons, or guns.") | ||
var/mob/living/living_mob = tutorial_mob | ||
living_mob.adjustBruteLoss(10) | ||
addtimer(CALLBACK(src, PROC_REF(brute_tutorial_2)), 4 SECONDS) | ||
|
||
/datum/tutorial/marine/medical_basic/proc/brute_tutorial_2() | ||
message_to_player("You can observe if you have <b>Brute</b> or <b>Burn</b> damage by clicking on yourself with an empty hand on help intent.") | ||
update_objective("Click on yourself with an empty hand.") | ||
RegisterSignal(tutorial_mob, COMSIG_LIVING_ATTACKHAND_HUMAN, PROC_REF(on_health_examine)) | ||
|
||
/datum/tutorial/marine/medical_basic/proc/on_health_examine(datum/source, mob/living/carbon/human/attacked_mob) | ||
SIGNAL_HANDLER | ||
|
||
if(attacked_mob != tutorial_mob) | ||
return | ||
|
||
UnregisterSignal(tutorial_mob, COMSIG_LIVING_ATTACKHAND_HUMAN) | ||
message_to_player("Good. Now, you have taken some brute damage. <b>Bicaridine</b> is used to fix brute over time. Pick up the <b>bicaridine EZ autoinjector</b> and use it in-hand.") | ||
update_objective("Inject yourself with the bicaridine injector.") | ||
var/obj/item/reagent_container/hypospray/autoinjector/bicaridine/skillless/one_use/brute_injector = new(loc_from_corner(0, 4)) | ||
add_to_tracking_atoms(brute_injector) | ||
add_highlight(brute_injector) | ||
RegisterSignal(tutorial_mob, COMSIG_LIVING_HYPOSPRAY_INJECTED, PROC_REF(on_brute_inject)) | ||
|
||
/datum/tutorial/marine/medical_basic/proc/on_brute_inject(datum/source, obj/item/reagent_container/hypospray/injector) | ||
SIGNAL_HANDLER | ||
|
||
if(!istype(injector, /obj/item/reagent_container/hypospray/autoinjector/bicaridine/skillless/one_use)) | ||
return | ||
|
||
UnregisterSignal(tutorial_mob, COMSIG_LIVING_HYPOSPRAY_INJECTED) | ||
TUTORIAL_ATOM_FROM_TRACKING(/obj/item/reagent_container/hypospray/autoinjector/bicaridine/skillless/one_use, brute_injector) | ||
remove_highlight(brute_injector) | ||
message_to_player("All medicines take time to work after injection. Next is <b>Burn</b> damage. It is obtained from things like acid or being set on fire.") | ||
update_objective("") | ||
var/mob/living/living_mob = tutorial_mob | ||
living_mob.adjustBurnLoss(10) | ||
addtimer(CALLBACK(src, PROC_REF(burn_tutorial)), 4 SECONDS) | ||
|
||
/datum/tutorial/marine/medical_basic/proc/burn_tutorial() | ||
message_to_player("<b>Kelotane</b> is used to fix burn overtime. Inject yourself with the <b>kelotane EZ autoinjector</b>.") | ||
update_objective("Inject yourself with the kelotane injector.") | ||
var/obj/item/reagent_container/hypospray/autoinjector/kelotane/skillless/one_use/burn_injector = new(loc_from_corner(0, 4)) | ||
add_to_tracking_atoms(burn_injector) | ||
add_highlight(burn_injector) | ||
RegisterSignal(tutorial_mob, COMSIG_LIVING_HYPOSPRAY_INJECTED, PROC_REF(on_burn_inject)) | ||
|
||
|
||
/datum/tutorial/marine/medical_basic/proc/on_burn_inject(datum/source, obj/item/reagent_container/hypospray/injector) | ||
SIGNAL_HANDLER | ||
|
||
if(!istype(injector, /obj/item/reagent_container/hypospray/autoinjector/kelotane/skillless/one_use)) | ||
return | ||
|
||
UnregisterSignal(tutorial_mob, COMSIG_LIVING_HYPOSPRAY_INJECTED) | ||
TUTORIAL_ATOM_FROM_TRACKING(/obj/item/reagent_container/hypospray/autoinjector/kelotane/skillless/one_use, burn_injector) | ||
remove_highlight(burn_injector) | ||
message_to_player("Good. Now, when you normally take damage, you will also feel <b>pain</b>. Pain slows you down and can knock you out if left unchecked.") | ||
update_objective("") | ||
var/mob/living/living_mob = tutorial_mob | ||
living_mob.pain.apply_pain(PAIN_BONE_BREAK) | ||
addtimer(CALLBACK(src, PROC_REF(pain_tutorial)), 4 SECONDS) // add tram injecting | ||
|
||
|
||
// END OF SCRIPTING | ||
// START OF SCRIPT HELPERS | ||
|
||
// END OF SCRIPT HELPERS | ||
|
||
/datum/tutorial/marine/medical_basic/init_mob() | ||
. = ..() | ||
arm_equipment(tutorial_mob, /datum/equipment_preset/tutorial) | ||
|
||
TUTORIAL_ATOM_FROM_TRACKING(/obj/structure/machinery/cryopod/tutorial, tutorial_pod) | ||
tutorial_pod.go_in_cryopod(tutorial_mob, TRUE, FALSE) | ||
|
||
|
||
/datum/tutorial/marine/medical_basic/init_map() | ||
new /obj/structure/surface/table/almayer(loc_from_corner(0, 4)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters