mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-25 13:52:30 +08:00
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:
+6
-4
@@ -161,15 +161,15 @@ var Path = {
|
|||||||
var currentBagCapacity = 0;
|
var currentBagCapacity = 0;
|
||||||
// Add the non-craftables to the craftables
|
// Add the non-craftables to the craftables
|
||||||
var carryable = $.extend({
|
var carryable = $.extend({
|
||||||
'cured meat': { type: 'tool' },
|
'cured meat': { type: 'tool', desc: 'healing: '+ World.MEAT_HEAL },
|
||||||
'bullets': { type: 'tool' },
|
'bullets': { type: 'tool', desc: 'used with rifle' },
|
||||||
'grenade': {type: 'weapon' },
|
'grenade': {type: 'weapon' },
|
||||||
'bolas': {type: 'weapon' },
|
'bolas': {type: 'weapon' },
|
||||||
'laser rifle': {type: 'weapon' },
|
'laser rifle': {type: 'weapon' },
|
||||||
'energy cell': {type: 'tool' },
|
'energy cell': {type: 'tool', desc: 'used with laser rifle' },
|
||||||
'bayonet': {type: 'weapon' },
|
'bayonet': {type: 'weapon' },
|
||||||
'charm': {type: 'tool'},
|
'charm': {type: 'tool'},
|
||||||
'medicine': {type: 'tool'}
|
'medicine': {type: 'tool', desc: 'healing: ' + World.MEDS_HEAL}
|
||||||
}, Room.Craftables);
|
}, Room.Craftables);
|
||||||
|
|
||||||
for(var k in carryable) {
|
for(var k in carryable) {
|
||||||
@@ -259,6 +259,8 @@ var Path = {
|
|||||||
if(store.type == 'weapon') {
|
if(store.type == 'weapon') {
|
||||||
$('<div>').addClass('row_key').text(_('damage')).appendTo(tt);
|
$('<div>').addClass('row_key').text(_('damage')).appendTo(tt);
|
||||||
$('<div>').addClass('row_val').text(World.getDamage(key)).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);
|
$('<div>').addClass('row_key').text(_('weight')).appendTo(tt);
|
||||||
|
|||||||
Reference in New Issue
Block a user