Skip to content

Commit

Permalink
Add better SPECIAL description
Browse files Browse the repository at this point in the history
  • Loading branch information
Janiczek committed Nov 1, 2024
1 parent d108b8d commit c82fc02
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 11 deletions.
4 changes: 3 additions & 1 deletion public/scripts/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export const theme = {
},
fontSize: {
/* https://github.com/evilmartians/mono?tab=readme-ov-file#font-size-and-legibility */
lg: ["25px", "28px"],
rg: ["15px", "24px"],
md: ["20px", "32px"],
lg: ["25px", "36px"],
},
fontFamily: {
mono: "Martian Mono",
Expand Down
66 changes: 59 additions & 7 deletions src/Data/Special.elm
Original file line number Diff line number Diff line change
Expand Up @@ -251,25 +251,77 @@ description : Type -> String
description type_ =
case type_ of
Strength ->
"Raw physical strength. A high Strength is good for physical characters."
"""Raw physical strength. A high Strength is good for physical characters.
Affects:
- max HP
- Unarmed, Melee Weapons skill %
- unarmed and melee damage
- required to handle weapons effectively
"""

Perception ->
"The ability to see, hear, taste and notice unusual things. A high Perception is important for a sharpshooter."
"""The ability to see, hear, taste and notice unusual things. A high Perception is important for a sharpshooter.
Affects:
- perception level (fights/ladder/map awareness and effective movement)
- ranged distance penalty
- ranged chance to hit
- sequence
- First Aid, Doctor, Lockpick, Traps skill %
"""

Endurance ->
"Stamina and physical toughness. A character with a high Endurance will survive where others may not."
"""Stamina and physical toughness. A character with a high Endurance will survive where others may not.
Affects:
- max HP
- tick heal percentage
- mitigation of critical attacks
- Outdoorsman skill %
"""

Charisma ->
"A combination of appearance and charm. A high Charisma is important for characters that want to influence people with words."
"""A combination of appearance and charm. A high Charisma is important for characters that want to influence people with words.
Affects:
- Speech, Barter skill %
"""

Intelligence ->
"Knowledge, wisdom and the ability to think quickly. A high Intelligence is important for any character."
"""Knowledge, wisdom and the ability to think quickly. A high Intelligence is important for any character.
Affects:
- skill points gained per level
- book use tick cost
- First Aid, Doctor, Science, Repair, Outdoorsman skill %
"""

Agility ->
"Coordination and the ability to move well. A high Agility is important for any active character."
"""Coordination and the ability to move well. A high Agility is important for any active character.
Affects:
- armor class
- unarmed damage
- mitigation of critical attacks
- Small Guns, Big Guns, Energy Weapons, Unarmed, Melee Weapons, Throwing, Sneak, Lockpick, Steal, Traps skill %
"""

Luck ->
"Fate. Karma. An extremely high or low Luck will affect the character - somehow. Events and situations will be changed by how lucky (or unlucky) your character is."
"""Fate. Karma. An extremely high or low Luck will affect the character - somehow. Events and situations will be changed by how lucky (or unlucky) your character is.
Affects:
- critical chance
- mitigation of critical attacks
- Gambling skill % (currently unused)
"""


toList : Special -> List Int
Expand Down
4 changes: 3 additions & 1 deletion src/Frontend.elm
Original file line number Diff line number Diff line change
Expand Up @@ -2362,7 +2362,9 @@ townStoreView barter shop location world player =
]
[ H.text "=" ]
|> UI.withTooltip
("Even up the trade (transfer " ++ String.fromInt available ++ " caps)"
("Even up the trade (transfer "
++ String.fromInt available
++ " caps)"
++ (if hasEnough then
""

Expand Down
6 changes: 4 additions & 2 deletions src/Frontend/News.elm
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,20 @@ Current:
- quests UX + test them end-to-end
- end of game
- onboarding / getting started guide
- the first message to a player to list some goals, link to Guide, etc.
Next up:
- tooltips around edge of screen - floating-ui.js?
- onboarding / getting started guide
- HtH Evade perk to only work if hands are empty
- new char / char screen: show Sequence in derived stats
Ideas floating around:
- critical misses
- some congratulation toast about a level-up?
- some realtime toast about you being attacked by somebody?
- weapon scope - minimal effective distance 8
- More enemies?
- Weapon/ammo part of item loot of enemies?
- Fight Strategy: walk away
Expand Down

0 comments on commit c82fc02

Please sign in to comment.