/obj/item/book/granter

Books that teach things.
(Intrinsic actions like bar flinging, spells like fireball or smoke, or martial arts)
Vars | |
book_sounds | The sounds played as the user's reading the book. |
---|---|
ordered_remarks | Whether to display the remarks in order. |
pages_to_mastery | Controls how long a mob must keep the book in his hand to actually successfully learn |
reading | Sanity, whether it's currently being read |
remarks | Flavor messages displayed to mobs reading the granter |
uses | The amount of uses on the granter. |
Procs | |
can_learn | Checks if the user can learn whatever this granter... grants |
on_reading_finished | Called when the reading is completely finished. This is where the actual granting should happen. |
on_reading_start | Called when the user starts to read the granter. |
on_reading_stopped | Called when the reading is interrupted without finishing. |
recoil | Effects that occur whenever the book is read when it has no uses left. |
turn_page | The actual "turning over of the page" flavor bit that happens while someone is reading the granter. |
Var Details
book_sounds

The sounds played as the user's reading the book.
ordered_remarks

Whether to display the remarks in order.
pages_to_mastery

Controls how long a mob must keep the book in his hand to actually successfully learn
reading

Sanity, whether it's currently being read
remarks

Flavor messages displayed to mobs reading the granter
uses

The amount of uses on the granter.
Proc Details
can_learn
Checks if the user can learn whatever this granter... grants
on_reading_finished
Called when the reading is completely finished. This is where the actual granting should happen.
on_reading_start
Called when the user starts to read the granter.
on_reading_stopped
Called when the reading is interrupted without finishing.
recoil
Effects that occur whenever the book is read when it has no uses left.
turn_page
The actual "turning over of the page" flavor bit that happens while someone is reading the granter.