Skip to content

Commit

Permalink
feat: rename swanky to rare (decentraland#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosantangelo authored May 26, 2020
1 parent 0067ffd commit 81bdcf2
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 22 deletions.
2 changes: 1 addition & 1 deletion indexer/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ enum WearableCategory @entity {
enum WearableRarity @entity {
common
uncommon
swanky
rare
epic
legendary
mythic
Expand Down
2 changes: 1 addition & 1 deletion indexer/scripts/importWearableCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as path from 'path'
const prettier = require('prettier')

enum RarityId {
SWANKY = 'swanky',
RARE = 'rare',
EPIC = 'epic',
LENGENDARY = 'legendary',
MYTHIC = 'mythic',
Expand Down
14 changes: 7 additions & 7 deletions indexer/src/data/wearables/dcl_launch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export let dcl_launch: Wearable[] = [
'Decentraland Logo Earrings',
'',
'earring',
'swanky',
'rare',
['BaseFemale', 'BaseMale']
),
new Wearable('dcl_mana_earring', 'MANA Earrings', '', 'earring', 'epic', [
Expand Down Expand Up @@ -36,7 +36,7 @@ export let dcl_launch: Wearable[] = [
'BaseMale',
'BaseFemale'
]),
new Wearable('dcl_hat_hat', 'Decentraland Hat', '', 'hat', 'swanky', [
new Wearable('dcl_hat_hat', 'Decentraland Hat', '', 'hat', 'rare', [
'BaseMale',
'BaseFemale'
]),
Expand All @@ -48,7 +48,7 @@ export let dcl_launch: Wearable[] = [
'mythic',
['BaseMale']
),
new Wearable('mana_hat', 'MANA Hat', '', 'hat', 'swanky', [
new Wearable('mana_hat', 'MANA Hat', '', 'hat', 'rare', [
'BaseMale',
'BaseFemale'
]),
Expand Down Expand Up @@ -77,7 +77,7 @@ export let dcl_launch: Wearable[] = [
'Decentraland Hoodie',
'',
'upper_body',
'swanky',
'rare',
['BaseMale', 'BaseFemale']
),
new Wearable(
Expand All @@ -93,7 +93,7 @@ export let dcl_launch: Wearable[] = [
'Decentraland Launch T-Shirt',
'',
'upper_body',
'swanky',
'rare',
['BaseMale', 'BaseFemale']
),
new Wearable(
Expand All @@ -109,15 +109,15 @@ export let dcl_launch: Wearable[] = [
'MANA Hoodie',
'',
'upper_body',
'swanky',
'rare',
['BaseMale', 'BaseFemale']
),
new Wearable(
'mana_tshirt_upper_body',
'MANA T-Shirt',
'',
'upper_body',
'swanky',
'rare',
['BaseMale', 'BaseFemale']
),
new Wearable(
Expand Down
4 changes: 2 additions & 2 deletions indexer/src/data/wearables/halloween_2019.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export let halloween_2019: Wearable[] = [
'Mariachi Hat',
'Guitar not included',
'hat',
'swanky',
'rare',
['BaseMale', 'BaseFemale']
),
new Wearable(
Expand Down Expand Up @@ -213,7 +213,7 @@ export let halloween_2019: Wearable[] = [
'Happy Pumpkin',
'Flesh and seeds removed free of charge!',
'helmet',
'swanky',
'rare',
['BaseMale', 'BaseFemale']
),
new Wearable(
Expand Down
3 changes: 0 additions & 3 deletions webapp/src/modules/nft/wearable/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export enum WearableRarity {
MYTHIC = 'mythic',
LEGENDARY = 'legendary',
EPIC = 'epic',
SWANKY = 'swanky',
RARE = 'rare',
UNCOMMON = 'uncommon',
COMMON = 'common'
Expand All @@ -32,7 +31,6 @@ export const RARITY_COLOR_LIGHT = {
[WearableRarity.MYTHIC]: '#FB7DE3',
[WearableRarity.LEGENDARY]: '#A657ED',
[WearableRarity.EPIC]: '#6397F2',
[WearableRarity.SWANKY]: '#3AD682',
[WearableRarity.RARE]: '#3AD682',
[WearableRarity.UNCOMMON]: '#FF8563',
[WearableRarity.COMMON]: '#D4E0E0'
Expand All @@ -43,7 +41,6 @@ export const RARITY_COLOR = {
[WearableRarity.MYTHIC]: '#FF63E1',
[WearableRarity.LEGENDARY]: '#842DDA',
[WearableRarity.EPIC]: '#3D85E6',
[WearableRarity.SWANKY]: '#36CF75',
[WearableRarity.RARE]: '#36CF75',
[WearableRarity.UNCOMMON]: '#ED6D4F',
[WearableRarity.COMMON]: '#ABC1C1'
Expand Down
2 changes: 0 additions & 2 deletions webapp/src/modules/translation/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@
"mythic": "Mythic",
"legendary": "Legendary",
"epic": "Epic",
"swanky": "Swanky",
"rare": "Rare",
"uncommon": "Uncommon",
"common": "Common"
Expand All @@ -145,7 +144,6 @@
"mythic": "For the lucky few: max 10",
"legendary": "Limited supply: max 100",
"epic": "Max supply: 1000",
"swanky": "Max supply: 5000",
"rare": "Max supply: 5000",
"uncommon": "Max supply: 10,000",
"common": "Max supply: 100,000"
Expand Down
4 changes: 1 addition & 3 deletions webapp/src/modules/translation/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,17 +135,15 @@
"mythic": "Mítico",
"legendary": "Legendario",
"epic": "Épico",
"swanky": "Ostentoso",
"rare": "Raro",
"uncommon": "Poco común",
"common": "Común"
},
"rarity_tooltip": {
"unique": "Único en su tipo: uno solo en existencia",
"mythic": "Para algunos pocos: máximo 10",
"legendary": "Ediciión limitada: máximo 100",
"legendary": "Edición limitada: máximo 100",
"epic": "Suministro máximo: 1000",
"swanky": "Suministro máximo: 5000",
"rare": "Suministro máximo: 5000",
"uncommon": "Suministro máximo: 10.000",
"common": "Suministro máximo: 100.000"
Expand Down
4 changes: 1 addition & 3 deletions webapp/src/modules/translation/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,17 +135,15 @@
"mythic": "神话",
"legendary": "传奇",
"epic": "史诗",
"swanky": "时髦",
"rare": "罕见",
"uncommon": "罕见",
"uncommon": "稀有",
"common": "常见"
},
"rarity_tooltip": {
"unique": "像圣杯一样:独一无二",
"mythic": "给幸运的人:最多10个",
"legendary": "限量供应:最多100个",
"epic": "最大供应量:1000个",
"swanky": "最大供应量:5000个",
"rare": "最大供应量:5000个",
"uncommon": "最大供应量:10,000个",
"common": "最大供应量:100,000个"
Expand Down

0 comments on commit 81bdcf2

Please sign in to comment.