mirror of
https://github.com/Jusctsch5/ironsphererpg.git
synced 2026-01-19 19:44:45 +00:00
T2RPG: Enhanced Inventory (First crack)
Adding more information on each item. There isn't a great way to parse out the benefits that each item gives you, so there's some extra mental work there. Additionally, I've supplied the skill required for the particular item.
This commit is contained in:
parent
7dd35caa7c
commit
06a35b6a2c
|
|
@ -5419,13 +5419,25 @@ function RPGGame::InventoryListOnSelect(%game, %client, %itemid)
|
|||
|
||||
%info[1] = " ";
|
||||
%info[2] = "Item ID: " @ %itemId;
|
||||
%info[3] = "Amount: " @ %game.getitemCount(%client, %item, %prefix, %suffix);
|
||||
%info[3] = "Type: " @ $ItemType[%game.GetItem(%client, %itemId)];
|
||||
%info[4] = "Base Effect: " @ $ItemBaseSpecialVar[%game.GetItem(%client, %itemId)];
|
||||
|
||||
if ($SkillType[%game.GetItem(%client, %itemId)])
|
||||
{
|
||||
%info[5] = "Skill Type: " @ $SkillDesc[$SkillType[%game.GetItem(%client, %itemId)]];
|
||||
}
|
||||
else
|
||||
{
|
||||
%info[5] = " ";
|
||||
}
|
||||
|
||||
%info[6] = "Amount: " @ %game.getitemCount(%client, %item, %prefix, %suffix);
|
||||
if(%client.data.equipped[%itemid])
|
||||
%info[4] = "Equipped: Yes";
|
||||
%info[7] = "Equipped: Yes";
|
||||
else
|
||||
%info[4] = "Equipped: No";
|
||||
%info[7] = "Equipped: No";
|
||||
|
||||
commandToClient(%client, 'InventoryListOnSelect', %info[1], %info[2], %info[3], %info[4]);
|
||||
commandToClient(%client, 'InventoryListOnSelect', %info[1], %info[2], %info[3], %info[4], %info[5], %info[6], %info[7]);
|
||||
}
|
||||
}
|
||||
function RPGGame::ShapeBasecycleWeapon(%game, %this, %data)
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ if ( isDemo() )
|
|||
}
|
||||
else
|
||||
{
|
||||
$Host::GameName = "WilfCastle's Tribes 2 RPG";
|
||||
$Host::GameName = "WilfCastle's T2RPG";
|
||||
$Host::Info = "Reboot of T2RPG Ironsphere II Mod.";
|
||||
$Host::Map = "T2RPG World Map";
|
||||
$Host::MaxPlayers = 64;
|
||||
|
|
|
|||
Loading…
Reference in a new issue