# 列表
drop_items = [enemy.drop_item1, enemy.drop_item2]
if $imported["ExtraDropItem"]
drop_items += enemy.extra_drop_items
end
dy += WLH
count = 0
drop_items.each_with_index { |item, i|
# 物品名
case item.kind
when 0
next
when 1
drop_item = $data_items[item.item_id]
when 2
drop_item = $data_weapons[item.weapon_id]
when 3
drop_item = $data_armors[item.armor_id]
end
if KGC::Commands.enemy_item_dropped?(enemy.id, i)
draw_item_name(drop_item, dx, dy)
else
draw_masked_item_name(drop_item, dx, dy)
end
dy += WLH
count += 1
break if count == rows
}
return new_dy
end
#--------------------------------------------------------------------------
# ○ 物品名为遮挡的描画
# item : 物品 (机能、武器、防具都可以)
# x : 描画处 X 坐标
# y : 描画出 Y 坐标
# enabled : 有効标志。false 的时候半透明的描画
#--------------------------------------------------------------------------
def draw_masked_item_name(item, x, y, enabled = true)
return if item == nil
draw_icon(item.icon_index, x, y, enabled)
self.contents.font.color = normal_color
self.contents.font.color.alpha = enabled ? 255 : 128
mask = KGC::EnemyGuide::UNDROPPED_ITEM_NAME
text = KGC.mask_string(item.name, mask)
self.contents.draw_text(x + 24, y, 172, WLH, text)
end
#--------------------------------------------------------------------------
# ○ 偷盗名为遮挡的描画
# dx, dy : 描画先 X, Y
# rows : 行数
#--------------------------------------------------------------------------
def draw_steal_object(dx, dy, rows)
return dy unless $imported["Steal"] && KGC::EnemyGuide::SHOW_STEAL_OBJ