2008-11-03から1日間の記事一覧

Rogue 3.6.3: アイテムの初期化

今日は続いてアイテム類の初期化部分をみていく。init_playerの次に呼び出されるのはinit_things。これは以下の様になっている。 init_things() { register struct magic_item *mp; for (mp = &things[1]; mp <= &things[NUMTHINGS-1]; mp++) mp->mi_prob +=…