This repository has been archived by the owner on Jun 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Papercrafting and reading training (#1324)
- Loading branch information
Showing
3 changed files
with
107 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
|
||
/obj/item/literary | ||
name = "novice's guide to literature" | ||
desc = "A book that teaches the alphabet, sentences of varying complexity, and common symbols, allowing readers to train their reading skills. The more advanced the guide, the higher the limit and the more literate you must be to study it." | ||
icon = 'icons/roguetown/items/books.dmi' | ||
icon_state = "book_1" | ||
var/exppercycle = 5 | ||
var/minskill = 0 | ||
var/maxskill = 1 | ||
var/skilltoteach = /datum/skill/misc/reading | ||
|
||
/obj/item/literary/apprentice | ||
name = "apprentice's guide to literature" | ||
icon_state = "book2_1" | ||
minskill = 1 | ||
maxskill = 2 | ||
exppercycle = 8 | ||
|
||
/obj/item/literary/journeyman | ||
name = "journeyman's guide to literature" | ||
icon_state = "book3_1" | ||
minskill = 2 | ||
maxskill = 3 | ||
exppercycle = 13 | ||
|
||
/obj/item/literary/expert | ||
name = "expert's guide to literature" | ||
icon_state = "book4_1" | ||
minskill = 3 | ||
maxskill = 4 | ||
exppercycle = 20 | ||
|
||
/obj/item/literary/master | ||
name = "master's guide to literature" | ||
icon_state = "book5_1" | ||
minskill = 4 | ||
maxskill = 5 | ||
exppercycle = 30 | ||
|
||
/obj/item/literary/attack_self(mob/user) | ||
. = ..() | ||
attemptlearn(user) | ||
|
||
/obj/item/literary/proc/attemptlearn(mob/user) | ||
if(user.mind && ishuman(user)) | ||
var/mob/living/carbon/human/H = user | ||
var/userskill = H.mind.get_skill_level(skilltoteach) | ||
var/intbonus = H.STAINT - 10 | ||
if(userskill < minskill) | ||
to_chat(user, "<span class='warning'>This guide is too advanced for me to study!</span>") | ||
return | ||
if(userskill < maxskill) | ||
to_chat(user, "You begin to study the [src.name]!") | ||
if(do_after(H, 5 SECONDS)) | ||
user.mind.adjust_experience(skilltoteach, exppercycle + intbonus) | ||
attemptlearn(user) | ||
else | ||
to_chat(user, "<span class='warning'>This guide is too simple for me to learn any more from!</span>") | ||
return | ||
else | ||
return |
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