Mass reformatting (braces from next line)
This commit is contained in:
@@ -28,8 +28,7 @@ short loot_max[5] = {3,8,40,800,4000};
|
||||
|
||||
|
||||
|
||||
cItemRec get_stored_item(short which)
|
||||
{
|
||||
cItemRec get_stored_item(short which) {
|
||||
cItemRec s_item;
|
||||
|
||||
if((which >= 400) || (which < 0)) {
|
||||
@@ -41,8 +40,7 @@ cItemRec get_stored_item(short which)
|
||||
return s_item;
|
||||
}
|
||||
|
||||
cItemRec get_food()
|
||||
{
|
||||
cItemRec get_food() {
|
||||
cItemRec food('food');
|
||||
// {11,0, 0,0,0,0,0,0, 62,0,0,0,0, 0, 0,0, {0,0},"Food", "Food",0,0,0,0};
|
||||
food.graphic_num += get_ran(1,0,2);
|
||||
@@ -107,31 +105,26 @@ cItemRec get_armor(short loot) {
|
||||
return armor;
|
||||
}
|
||||
|
||||
cItemRec get_helm(short loot)
|
||||
{
|
||||
cItemRec get_helm(short loot) {
|
||||
|
||||
return pull_item_of_type(loot,loot_min[loot],loot_max[loot],eItemType::HELM);
|
||||
}
|
||||
|
||||
cItemRec get_gloves(short loot)
|
||||
{
|
||||
cItemRec get_gloves(short loot) {
|
||||
return pull_item_of_type(loot,loot_min[loot],loot_max[loot],eItemType::GLOVES);
|
||||
}
|
||||
|
||||
|
||||
|
||||
cItemRec get_boots(short loot)
|
||||
{
|
||||
cItemRec get_boots(short loot) {
|
||||
return pull_item_of_type(loot,loot_min[loot],loot_max[loot],eItemType::BOOTS);
|
||||
}
|
||||
|
||||
cItemRec get_shield(short loot)
|
||||
{
|
||||
cItemRec get_shield(short loot) {
|
||||
return pull_item_of_type(loot,loot_min[loot],loot_max[loot],eItemType::SHIELD);
|
||||
}
|
||||
|
||||
cItemRec get_potion(short loot)
|
||||
{
|
||||
cItemRec get_potion(short loot) {
|
||||
cItemRec p;
|
||||
|
||||
if(get_ran(1,0,80) < 20 * (4 - loot))
|
||||
@@ -141,13 +134,11 @@ cItemRec get_potion(short loot)
|
||||
return p;
|
||||
}
|
||||
|
||||
cItemRec get_scroll(short loot)
|
||||
{
|
||||
cItemRec get_scroll(short loot) {
|
||||
return pull_item_of_type(loot,loot_min[loot],loot_max[loot],eItemType::SCROLL);
|
||||
}
|
||||
|
||||
cItemRec get_missile(short loot)
|
||||
{
|
||||
cItemRec get_missile(short loot) {
|
||||
if(get_ran(1,0,2) < 2)
|
||||
return pull_item_of_type(loot,loot_min[loot],loot_max[loot],eItemType::ARROW,eItemType::THROWN_MISSILE,eItemType::BOW);
|
||||
return pull_item_of_type(loot,loot_min[loot],loot_max[loot],eItemType::CROSSBOW,eItemType::BOLTS,eItemType::MISSILE_NO_AMMO);
|
||||
@@ -158,18 +149,15 @@ cItemRec get_poison(short loot) {
|
||||
return pull_item_of_type(loot,loot_min[loot],loot_max[loot],eItemType::WEAPON_POISON);
|
||||
}
|
||||
|
||||
cItemRec get_wand(short loot)
|
||||
{
|
||||
cItemRec get_wand(short loot) {
|
||||
return pull_item_of_type(loot,loot_min[loot],loot_max[loot],eItemType::WAND);
|
||||
}
|
||||
|
||||
cItemRec get_ring(short loot)
|
||||
{
|
||||
cItemRec get_ring(short loot) {
|
||||
return pull_item_of_type(loot,loot_min[loot],loot_max[loot],eItemType::RING);
|
||||
}
|
||||
|
||||
cItemRec get_necklace(short loot)
|
||||
{
|
||||
cItemRec get_necklace(short loot) {
|
||||
return pull_item_of_type(loot,loot_min[loot],loot_max[loot],eItemType::NECKLACE);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user