Files
Bubberstation/code/game/objects/items/granters/martial_arts/sleeping_carp.dm
SmArtKar d4ac95a0e1 Nobody expects the span inquisition: replaces most <span>s with macros (#86798)
## About The Pull Request
123 changed files and multiple crashes after writing broken regex, I
replaced most remains of direct spans with macros. This cleans up the
code and makes it easier to work with in general, see justification for
the original PR. I also fixed a bunch of broken and/or unclosed spans
here too.
I intentionally avoided replacing spans with multiple classes (in most
cases) and spans in the middle of strings as it would impact readability
(in my opinion at least) and could be done later if required.

## Why It's Good For The Game

Cleaner code, actually using our macros, fixes borked HTML in some
places. See original PR.

## Changelog
Nothing player-facing
2024-09-26 19:36:13 +00:00

36 lines
1.6 KiB
Plaintext

/obj/item/book/granter/martial/carp
martial = /datum/martial_art/the_sleeping_carp
name = "mysterious scroll"
martial_name = "sleeping carp"
desc = "A scroll filled with strange markings. It seems to be drawings of some sort of martial art."
greet = span_sciradio("You have learned the ancient martial art of the Sleeping Carp! Your hand-to-hand combat has become much more effective, and you are now able to deflect any projectiles \
directed toward you while in Combat Mode. Your body has also hardened itself, granting extra protection against lasting wounds that would otherwise mount during extended combat. \
However, you are also unable to use any ranged weaponry. You can learn more about your newfound art by using the Recall Teachings verb in the Sleeping Carp tab.")
icon = 'icons/obj/scrolls.dmi'
icon_state = "sleepingcarp"
worn_icon_state = "scroll"
remarks = list(
"Wait, a high protein diet is really all it takes to become stabproof...?",
"Overwhelming force, immovable object...",
"Focus... And you'll be able to incapacitate any foe in seconds...",
"I must pierce armor for maximum damage...",
"I don't think this would combine with other martial arts...",
"Become one with the carp...",
"Glub...",
)
/obj/item/book/granter/martial/carp/on_reading_finished(mob/living/carbon/user)
. = ..()
update_appearance()
/obj/item/book/granter/martial/carp/update_appearance(updates)
. = ..()
if(uses <= 0)
name = "empty scroll"
desc = "It's completely blank."
icon_state = "blankscroll"
else
name = initial(name)
desc = initial(desc)
icon_state = initial(icon_state)