Hovering over a tool on the path tab now gives a small description on how the tool can be used.

This commit is contained in:
Elizabeth Donohew
2016-02-23 22:40:04 -06:00
parent 4d9890f2ef
commit 9083a9582c
+6 -4
View File
@@ -161,15 +161,15 @@ var Path = {
var currentBagCapacity = 0;
// Add the non-craftables to the craftables
var carryable = $.extend({
'cured meat': { type: 'tool' },
'bullets': { type: 'tool' },
'cured meat': { type: 'tool', desc: 'healing: '+ World.MEAT_HEAL },
'bullets': { type: 'tool', desc: 'used with rifle' },
'grenade': {type: 'weapon' },
'bolas': {type: 'weapon' },
'laser rifle': {type: 'weapon' },
'energy cell': {type: 'tool' },
'energy cell': {type: 'tool', desc: 'used with laser rifle' },
'bayonet': {type: 'weapon' },
'charm': {type: 'tool'},
'medicine': {type: 'tool'}
'medicine': {type: 'tool', desc: 'healing: ' + World.MEDS_HEAL}
}, Room.Craftables);
for(var k in carryable) {
@@ -259,6 +259,8 @@ var Path = {
if(store.type == 'weapon') {
$('<div>').addClass('row_key').text(_('damage')).appendTo(tt);
$('<div>').addClass('row_val').text(World.getDamage(key)).appendTo(tt);
} else if(store.type == 'tool' && store.desc != "undefined") {
$('<div>').addClass('row_key').text(store.desc).appendTo(tt);
}
$('<div>').addClass('row_key').text(_('weight')).appendTo(tt);