simple research (#26806)

Co-authored-by: Useroth <37159550+Useroth@users.noreply.github.com>
This commit is contained in:
jjpark-kb
2024-04-18 17:32:02 +02:00
committed by GitHub
co-authored by Useroth
parent b2a97d82de
commit 8b02b8360c
12 changed files with 364 additions and 14 deletions
@@ -128,11 +128,13 @@
if(!(config_flags & EXPERIMENT_CONFIG_SILENT_FAIL))
to_chat(user, span_notice("You do not have an experiment selected!"))
return
if(!(config_flags & EXPERIMENT_CONFIG_IMMEDIATE_ACTION) && !do_after(user, 1 SECONDS, target = target))
var/skill_modifier = user.mind.get_skill_modifier(/datum/skill/research, SKILL_SPEED_MODIFIER) //SKYRAT EDIT: Research Skill (simple research)
if(!(config_flags & EXPERIMENT_CONFIG_IMMEDIATE_ACTION) && !do_after(user, 1 SECONDS * skill_modifier, target = target)) //SKYRAT EDIT: Research Skill (simple research)
return
if(action_experiment(source, target))
playsound(user, 'sound/machines/ping.ogg', 25)
to_chat(user, span_notice("You scan [target]."))
user.mind.adjust_experience(/datum/skill/research, 5) //SKYRAT EDIT: Research Skill (simple research)
else if(!(config_flags & EXPERIMENT_CONFIG_SILENT_FAIL))
playsound(user, 'sound/machines/buzz-sigh.ogg', 25)
to_chat(user, span_notice("[target] is not related to your currently selected experiment."))