-
-
Notifications
You must be signed in to change notification settings - Fork 541
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactors moodlets so that newline control characters don't have to b…
…e explicitly written, converts descriptions to span macros (#3623) ## About The Pull Request Refactors moodlets to use span macros, changes how they print so explicit newlines are not required in descriptions. Added span macros to a couple descriptions that had no coloring Tested locally and moodlets display properly ![image](https://github.com/user-attachments/assets/5c186a1e-2d11-44a6-9d27-8fd83b4e375e) ## Why It's Good For The Game Refactor good ## Changelog :cl: refactor: Refactored moods so explicit newlines are not required in descriptions. None of this changes player facing stuff. /:cl: --------- Signed-off-by: CoreyLee Hassell <[email protected]> Co-authored-by: Theos <[email protected]>
- Loading branch information
1 parent
0e7ccda
commit 5049e6a
Showing
8 changed files
with
168 additions
and
166 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
/datum/mood_event/horridroom | ||
description = "<span class='boldwarning'>This room looks terrible!</span>\n" | ||
description = span_boldwarning("This room looks terrible!") | ||
mood_change = -5 | ||
|
||
/datum/mood_event/badroom | ||
description = "<span class='warning'>This room looks really bad.</span>\n" | ||
description = span_warning("This room looks really bad.") | ||
mood_change = -3 | ||
|
||
/datum/mood_event/decentroom | ||
description = "<span class='nicegreen'>This room looks alright.</span>\n" | ||
description = span_nicegreen("This room looks alright.") | ||
mood_change = 1 | ||
|
||
/datum/mood_event/goodroom | ||
description = "<span class='nicegreen'>This room looks really pretty!</span>\n" | ||
description = span_nicegreen("This room looks really pretty!") | ||
mood_change = 3 | ||
|
||
/datum/mood_event/greatroom | ||
description = "<span class='nicegreen'>This room is beautiful!</span>\n" | ||
description = span_nicegreen("This room is beautiful!") | ||
mood_change = 5 |
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
Oops, something went wrong.