AvocadoAmber/AvocadoEdition_Light/extend/item.lib.php

44 lines
707 B
PHP
Raw Normal View History

2024-10-07 10:35:20 +09:00
<?php
if (!defined('_GNUBOARD_'))
exit;
function get_item($it_id)
{
return Item::getItem($it_id);
}
function get_item_img($it_id)
{
return Item::getImage($it_id);
}
function get_item_detail_img($it_id)
{
return Item::getDetailImage($it_id);
}
function get_item_name($it_id)
{
return Item::getName($it_id);
}
function get_inventory_item($in_id)
{
return Item::getInventoryItem($in_id);
}
function delete_inventory($in_id, $is_del = 0)
{
Item::takeItem($in_id, $is_del);
}
function insert_inventory($ch_id, $it_id, $item = null, $count = 1)
{
return Item::giveItem($ch_id, $it_id, $item, $count);
}
function get_item_explo($ch_id, $it_id)
{
return Item::randomBox($ch_id, $it_id);
}