improve(i18n): move potion to strings, add content.json for generic content
This commit is contained in:
Vendored
+6
-2
@@ -11255,8 +11255,12 @@ _.each(gearTypes, function(type) {
|
||||
|
||||
api.potion = {
|
||||
type: 'potion',
|
||||
text: "Health Potion",
|
||||
notes: "Recover 15 Health (Instant Use)",
|
||||
text: (function() {
|
||||
return i18n.t('potionText');
|
||||
}),
|
||||
notes: (function() {
|
||||
return i18n.t('potionNotes');
|
||||
}),
|
||||
value: 25,
|
||||
key: 'potion'
|
||||
};
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"potionText": "Potion",
|
||||
"potionNotes": "Recover 15 Health (Instant Use)"
|
||||
}
|
||||
@@ -300,7 +300,7 @@ _.each gearTypes, (type) ->
|
||||
---------------------------------------------------------------
|
||||
###
|
||||
|
||||
api.potion = type: 'potion', text: "Health Potion", notes: "Recover 15 Health (Instant Use)", value: 25, key: 'potion'
|
||||
api.potion = type: 'potion', text: (-> i18n.t('potionText')), notes: (-> i18n.t('potionNotes')), value: 25, key: 'potion'
|
||||
|
||||
###
|
||||
---------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user