From 13cea0fad43c707543e1b9aba364d5ed24e9feec Mon Sep 17 00:00:00 2001 From: Hafiz Date: Mon, 1 Dec 2025 13:17:46 -0600 Subject: [PATCH] Stat allocation by task dropdown --- .../client/src/components/tasks/taskModal.vue | 152 +++++++++++------- website/common/locales/en/character.json | 4 + 2 files changed, 102 insertions(+), 54 deletions(-) diff --git a/website/client/src/components/tasks/taskModal.vue b/website/client/src/components/tasks/taskModal.vue index 4d6e74bee2..6b2b91f558 100644 --- a/website/client/src/components/tasks/taskModal.vue +++ b/website/client/src/components/tasks/taskModal.vue @@ -392,24 +392,31 @@ class="col-12 mb-1" >{{ $t('assignedStat') }}
-
-
+ - - {{ $t(attributesStrings[stat]) }} - -
+ +
@@ -943,6 +950,72 @@ .streak-addon path { fill: $gray-200; } + + .stat-dropdown-container { + .select-list { + .selectListItem { + margin-bottom: 8px; + + &:last-child { + margin-bottom: 0; + } + } + + .selectListItem .dropdown-item { + padding: 8px 16px !important; + height: auto !important; + white-space: normal; + word-wrap: break-word; + + &:hover, + &:focus { + background-color: #D5C8FF; + } + } + } + + .stat-option-content { + display: block; + width: 100%; + + .stat-option-title { + display: block; + font-family: Roboto; + font-weight: 700; + font-size: 14px; + line-height: 24px; + letter-spacing: 0%; + text-transform: capitalize; + margin-bottom: 4px; + + &.str { + color: #f74e52; + } + + &.int { + color: #2995cd; + } + + &.con { + color: #ffa623; + } + + &.per { + color: #4f2a93; + } + } + + .stat-option-description { + display: block; + font-family: Roboto; + font-weight: 400; + font-size: 12px; + line-height: 16px; + letter-spacing: 0%; + color: $gray-200; + } + } + } @@ -1108,6 +1144,7 @@ import SelectMulti from './modal-controls/selectMulti'; import selectDifficulty from '@/components/tasks/modal-controls/selectDifficulty'; import selectTranslatedArray from '@/components/tasks/modal-controls/selectTranslatedArray'; import lockableLabel from '@/components/tasks/modal-controls/lockableLabel'; +import selectList from '@/components/ui/selectList'; import syncTask from '../../mixins/syncTask'; @@ -1131,6 +1168,7 @@ export default { selectTranslatedArray, toggleCheckbox, lockableLabel, + selectList, }, directives: { markdown: markdownDirective, @@ -1164,6 +1202,12 @@ export default { con: 'constitution', per: 'perception', }, + statOptions: [ + { key: 'str', label: 'strength', description: 'strTaskText' }, + { key: 'int', label: 'intelligence', description: 'intTaskText' }, + { key: 'con', label: 'constitution', description: 'conTaskText' }, + { key: 'per', label: 'perception', description: 'perTaskText' }, + ], calendarHighlights: { dates: [new Date()] }, }; }, diff --git a/website/common/locales/en/character.json b/website/common/locales/en/character.json index 66ec0c1563..e1553e8dc1 100644 --- a/website/common/locales/en/character.json +++ b/website/common/locales/en/character.json @@ -91,12 +91,16 @@ "stats": "Stats", "strength": "Strength", "strText": "Strength increases the chance of random \"critical hits\" and the Gold, Experience, and drop chance boost from them. It also helps deal damage to boss monsters.", + "strTaskText": "Increases critical hit chance and damage when scoring tasks. Also increases damage dealt to bosses.", "constitution": "Constitution", "conText": "Constitution reduces the damage you take from negative Habits and missed Dailies.", + "conTaskText": "Reduces damage taken from missed Dailies and negative Habits. Does not reduce damage from bosses.", "perception": "Perception", "perText": "Perception increases how much Gold you earn, and once you've unlocked the Market, increases the chance of finding items when scoring tasks.", + "perTaskText": "Increases drop chance when completing tasks, daily drop cap, streak bonuses, and Gold earned from tasks.", "intelligence": "Intelligence", "intText": "Intelligence increases how much Experience you earn, and once you've unlocked Classes, determines your maximum Mana available for class abilities.", + "intTaskText": "Increases Exp earned from tasks. Also increases your mana cap and mana regeneration rate.", "levelBonus": "Level Bonus", "allocatedPoints": "Allocated Points", "allocated": "Allocated",