Changeset 949
- Timestamp:
- 05/23/08 18:26:15 (6 months ago)
- Files:
-
- trunk/src/load.c (modified) (1 diff)
- trunk/src/obj-util.c (modified) (1 diff)
- trunk/src/object.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/load.c
r948 r949 109 109 110 110 /* Identical versions */ 111 return (FALSE);112 }113 114 115 /*116 * Hack -- determine if an item is "wearable" (or a missile)117 */118 static bool wearable_p(const object_type *o_ptr)119 {120 /* Valid "tval" codes */121 switch (o_ptr->tval)122 {123 case TV_SHOT:124 case TV_ARROW:125 case TV_BOLT:126 case TV_BOW:127 case TV_DIGGING:128 case TV_HAFTED:129 case TV_POLEARM:130 case TV_SWORD:131 case TV_BOOTS:132 case TV_GLOVES:133 case TV_HELM:134 case TV_CROWN:135 case TV_SHIELD:136 case TV_CLOAK:137 case TV_SOFT_ARMOR:138 case TV_HARD_ARMOR:139 case TV_DRAG_ARMOR:140 case TV_LITE:141 case TV_AMULET:142 case TV_RING:143 {144 return (TRUE);145 }146 }147 148 /* Nope */149 111 return (FALSE); 150 112 } trunk/src/obj-util.c
r938 r949 424 424 } 425 425 426 427 /* 428 * Hack -- determine if an item is "wearable" (or a missile) 429 */ 430 bool wearable_p(const object_type *o_ptr) 431 { 432 /* Valid "tval" codes */ 433 switch (o_ptr->tval) 434 { 435 case TV_SHOT: 436 case TV_ARROW: 437 case TV_BOLT: 438 case TV_BOW: 439 case TV_DIGGING: 440 case TV_HAFTED: 441 case TV_POLEARM: 442 case TV_SWORD: 443 case TV_BOOTS: 444 case TV_GLOVES: 445 case TV_HELM: 446 case TV_CROWN: 447 case TV_SHIELD: 448 case TV_CLOAK: 449 case TV_SOFT_ARMOR: 450 case TV_HARD_ARMOR: 451 case TV_DRAG_ARMOR: 452 case TV_LITE: 453 case TV_AMULET: 454 case TV_RING: 455 { 456 return (TRUE); 457 } 458 } 459 460 /* Nope */ 461 return (FALSE); 462 } 426 463 427 464 trunk/src/object.h
r938 r949 87 87 s16b label_to_inven(int c); 88 88 s16b label_to_equip(int c); 89 bool wearable_p(const object_type *o_ptr); 89 90 s16b wield_slot(const object_type *o_ptr); 90 91 const char *mention_use(int slot);
