rogue > datas > info


※上記の広告は60日以上更新のないWIKIに表示されています。更新することで広告が下部へ移動します。

宣言

rogue/struct/obj_info

値を破壊する関数

rogue/init_probs()

rogue/sum_probs()

メモ

XXがdefineされていない場合に呼び出される。

obj_infoの実態確保。

rogue/init_probs()にて、第2項に設定された値を加算する。

たとえばarm_infoの

leathr armorは20だが、

ring mailはleathr armorの確率がプラスされるので 35,

studded leathr armor は 50,

という具合に確率が低くなる。

thingsの確率は各種アイテムの出現頻度の様子。

先ほどの計算にあてはめるとしたの方にあるアイテムの方がレアい。

struct obj_info things[NUMTHINGS] = {
    { 0,                        26 },   /* potion */
    { 0,                        36 },   /* scroll */
    { 0,                        16 },   /* food */
    { 0,                         7 },   /* weapon */
    { 0,                         7 },   /* armor */
    { 0,                         4 },   /* ring */
    { 0,                         4 },   /* stick */
};
struct obj_info arm_info[MAXARMORS] = {
    { "leather armor",                 20,     20, NULL, FALSE },
    { "ring mail",             15,     25, NULL, FALSE },
    { "studded leather armor",         15,     20, NULL, FALSE },
    { "scale mail",            13,     30, NULL, FALSE },
    { "chain mail",            12,     75, NULL, FALSE },
    { "splint mail",           10,     80, NULL, FALSE },
    { "banded mail",           10,     90, NULL, FALSE },
    { "plate mail",             5,    150, NULL, FALSE },
};
struct obj_info pot_info[MAXPOTIONS] = {
    { "confusion",             7,   5, NULL, FALSE },
    { "hallucination",                 8,   5, NULL, FALSE },
    { "poison",                        8,   5, NULL, FALSE },
    { "gain strength",                13, 150, NULL, FALSE },
    { "see invisible",                 3, 100, NULL, FALSE },
    { "healing",              13, 130, NULL, FALSE },
    { "monster detection",     6, 130, NULL, FALSE },
    { "magic detection",       6, 105, NULL, FALSE },
    { "raise level",           2, 250, NULL, FALSE },
    { "extra healing",                 5, 200, NULL, FALSE },
    { "haste self",            5, 190, NULL, FALSE },
    { "restore strength",     13, 130, NULL, FALSE },
    { "blindness",             5,   5, NULL, FALSE },
    { "levitation",            6,  75, NULL, FALSE },
};
struct obj_info ring_info[MAXRINGS] = {
    { "protection",            9, 400, NULL, FALSE },
    { "add strength",          9, 400, NULL, FALSE },
    { "sustain strength",      5, 280, NULL, FALSE },
    { "searching",            10, 420, NULL, FALSE },
    { "see invisible",                10, 310, NULL, FALSE },
    { "adornment",             1,  10, NULL, FALSE },
    { "aggravate monster",    10,  10, NULL, FALSE },
    { "dexterity",             8, 440, NULL, FALSE },
    { "increase damage",       8, 400, NULL, FALSE },
    { "regeneration",          4, 460, NULL, FALSE },
    { "slow digestion",                9, 240, NULL, FALSE },
    { "teleportation",                 5,  30, NULL, FALSE },
    { "stealth",               7, 470, NULL, FALSE },
    { "maintain armor",                5, 380, NULL, FALSE },
};
struct obj_info scr_info[MAXSCROLLS] = {
    { "monster confusion",             7, 140, NULL, FALSE },
    { "magic mapping",                         4, 150, NULL, FALSE },
    { "hold monster",                  2, 180, NULL, FALSE },
    { "sleep",                                 3,   5, NULL, FALSE },
    { "enchant armor",                         7, 160, NULL, FALSE },
    { "identify potion",              10,  80, NULL, FALSE },
    { "identify scroll",              10,  80, NULL, FALSE },
    { "identify weapon",               6,  80, NULL, FALSE },
    { "identify armor",                        7, 100, NULL, FALSE },
    { "identify ring, wand or staff", 10, 115, NULL, FALSE },
    { "scare monster",                         3, 200, NULL, FALSE },
    { "food detection",                        2,  60, NULL, FALSE },
    { "teleportation",                         5, 165, NULL, FALSE },
    { "enchant weapon",                        8, 150, NULL, FALSE },
    { "create monster",                        4,  75, NULL, FALSE },
    { "remove curse",                  7, 105, NULL, FALSE },
    { "aggravate monsters",            3,  20, NULL, FALSE },
    { "protect armor",                         2, 250, NULL, FALSE },
};
struct obj_info weap_info[MAXWEAPONS + 1] = {
    { "mace",                         11,   8, NULL, FALSE },
    { "long sword",                   11,  15, NULL, FALSE },
    { "short bow",                    12,  15, NULL, FALSE },
    { "arrow",                                12,   1, NULL, FALSE },
    { "dagger",                                8,   3, NULL, FALSE },
    { "two handed sword",             10,  75, NULL, FALSE },
    { "dart",                         12,   2, NULL, FALSE },
    { "shuriken",                     12,   5, NULL, FALSE },
    { "spear",                                12,   5, NULL, FALSE },
    { NULL, 0 },        /* DO NOT REMOVE: fake entry for dragon's breath */
};
struct obj_info ws_info[MAXSTICKS] = {
    { "light",                        12, 250, NULL, FALSE },
    { "invisibility",          6,   5, NULL, FALSE },
    { "lightning",             3, 330, NULL, FALSE },
    { "fire",                  3, 330, NULL, FALSE },
    { "cold",                  3, 330, NULL, FALSE },
    { "polymorph",            15, 310, NULL, FALSE },
    { "magic missile",                10, 170, NULL, FALSE },
    { "haste monster",                10,   5, NULL, FALSE },
    { "slow monster",         11, 350, NULL, FALSE },
    { "drain life",            9, 300, NULL, FALSE },
    { "nothing",               1,   5, NULL, FALSE },
    { "teleport away",                 6, 340, NULL, FALSE },
    { "teleport to",           6,  50, NULL, FALSE },
    { "cancellation",          5, 280, NULL, FALSE },
};