Mercurial > mm7
comparison Items.cpp @ 365:0f35f908547f
fixed missing dagger
author | Gloval |
---|---|
date | Fri, 22 Feb 2013 01:20:30 +0400 |
parents | 2a09e1d6fc8f |
children | 85edec9da96b f0f66f690777 |
comparison
equal
deleted
inserted
replaced
364:3abebb74fd09 | 365:0f35f908547f |
---|---|
491 break; | 491 break; |
492 case 4: //Equip Stat | 492 case 4: //Equip Stat |
493 { | 493 { |
494 if ( !_strcmpi(test_string, "weapon") ) | 494 if ( !_strcmpi(test_string, "weapon") ) |
495 { | 495 { |
496 pItems[item_counter].uEquipType = 0; | 496 pItems[item_counter].uEquipType = EQUIP_ONE_OR_TWO_HANDS; |
497 break; | 497 break; |
498 } | 498 } |
499 if ( !_strcmpi(test_string, "weapon2") ) | 499 if ( !_strcmpi(test_string, "weapon2") ) |
500 { | 500 { |
501 pItems[item_counter].uEquipType = 1; | 501 pItems[item_counter].uEquipType = EQUIP_TWO_HANDED; |
502 break; | 502 break; |
503 } | 503 } |
504 if ( !_strcmpi(test_string, "weapon1or2") ) | 504 if ( !_strcmpi(test_string, "weapon1or2") ) |
505 { | 505 { |
506 pItems[item_counter].uEquipType = 0; | 506 pItems[item_counter].uEquipType = EQUIP_ONE_OR_TWO_HANDS; |
507 break; | 507 break; |
508 } | 508 } |
509 if ( !(_strcmpi(test_string, "missile")&&_strcmpi(test_string, "bow"))) | 509 if ( !(_strcmpi(test_string, "missile")&&_strcmpi(test_string, "bow"))) |
510 { | 510 { |
511 pItems[item_counter].uEquipType = 2; | 511 pItems[item_counter].uEquipType = EQUIP_BOW; |
512 break; | 512 break; |
513 } | 513 } |
514 if ( !_strcmpi(test_string, "armor") ) | 514 if ( !_strcmpi(test_string, "armor") ) |
515 { | 515 { |
516 pItems[item_counter].uEquipType = 3; | 516 pItems[item_counter].uEquipType = EQUIP_ARMOUR; |
517 break; | 517 break; |
518 } | 518 } |
519 if ( !_strcmpi(test_string, "shield") ) | 519 if ( !_strcmpi(test_string, "shield") ) |
520 { | 520 { |
521 pItems[item_counter].uEquipType = 4; | 521 pItems[item_counter].uEquipType = EQUIP_SHIELD; |
522 break; | 522 break; |
523 } | 523 } |
524 if ( !_strcmpi(test_string, "helm") ) | 524 if ( !_strcmpi(test_string, "helm") ) |
525 { | 525 { |
526 pItems[item_counter].uEquipType = 5; | 526 pItems[item_counter].uEquipType = EQUIP_HELMET; |
527 break; | 527 break; |
528 } | 528 } |
529 if ( !_strcmpi(test_string, "belt") ) | 529 if ( !_strcmpi(test_string, "belt") ) |
530 { | 530 { |
531 pItems[item_counter].uEquipType = 6; | 531 pItems[item_counter].uEquipType = EQUIP_BELT; |
532 break; | 532 break; |
533 } | 533 } |
534 if ( !_strcmpi(test_string, "cloak") ) | 534 if ( !_strcmpi(test_string, "cloak") ) |
535 { | 535 { |
536 pItems[item_counter].uEquipType = 7; | 536 pItems[item_counter].uEquipType = EQUIP_CLOAK; |
537 break; | 537 break; |
538 } | 538 } |
539 if ( !_strcmpi(test_string, "gauntlets") ) | 539 if ( !_strcmpi(test_string, "gauntlets") ) |
540 { | 540 { |
541 pItems[item_counter].uEquipType = 8; | 541 pItems[item_counter].uEquipType = EQUIP_GAUNTLETS; |
542 break; | 542 break; |
543 } | 543 } |
544 if ( !_strcmpi(test_string, "boots") ) | 544 if ( !_strcmpi(test_string, "boots") ) |
545 { | 545 { |
546 pItems[item_counter].uEquipType = 9; | 546 pItems[item_counter].uEquipType = EQUIP_BOOTS; |
547 break; | 547 break; |
548 } | 548 } |
549 if ( !_strcmpi(test_string, "ring") ) | 549 if ( !_strcmpi(test_string, "ring") ) |
550 { | 550 { |
551 pItems[item_counter].uEquipType = 10; | 551 pItems[item_counter].uEquipType = EQUIP_RING; |
552 break; | 552 break; |
553 } | 553 } |
554 if ( !_strcmpi(test_string, "amulet") ) | 554 if ( !_strcmpi(test_string, "amulet") ) |
555 { | 555 { |
556 pItems[item_counter].uEquipType = 11; | 556 pItems[item_counter].uEquipType = EQUIP_AMULET; |
557 break; | 557 break; |
558 } | 558 } |
559 if ( !_strcmpi(test_string, "weaponw") ) | 559 if ( !_strcmpi(test_string, "weaponw") ) |
560 { | 560 { |
561 pItems[item_counter].uEquipType = 12; | 561 pItems[item_counter].uEquipType = EQUIP_WAND; |
562 break; | 562 break; |
563 } | 563 } |
564 if ( !(_strcmpi(test_string, "herb")&&_strcmpi(test_string, "reagent"))) | 564 if ( !(_strcmpi(test_string, "herb")&&_strcmpi(test_string, "reagent"))) |
565 { | 565 { |
566 pItems[item_counter].uEquipType = 13; | 566 pItems[item_counter].uEquipType = EQUIP_REAGENT; |
567 break; | 567 break; |
568 } | 568 } |
569 if ( !_strcmpi(test_string, "bottle") ) | 569 if ( !_strcmpi(test_string, "bottle") ) |
570 { | 570 { |
571 pItems[item_counter].uEquipType = 14; | 571 pItems[item_counter].uEquipType = EQUIP_POTION; |
572 break; | 572 break; |
573 } | 573 } |
574 if ( !_strcmpi(test_string, "sscroll") ) | 574 if ( !_strcmpi(test_string, "sscroll") ) |
575 { | 575 { |
576 pItems[item_counter].uEquipType = 15; | 576 pItems[item_counter].uEquipType = 15; |
577 break; | 577 break; |
578 } | 578 } |
579 if ( !_strcmpi(test_string, "book") ) | 579 if ( !_strcmpi(test_string, "book") ) |
580 { | 580 { |
581 pItems[item_counter].uEquipType = 16; | 581 pItems[item_counter].uEquipType = EQUIP_BOOK; |
582 break; | 582 break; |
583 } | 583 } |
584 if ( !_strcmpi(test_string, "mscroll") ) | 584 if ( !_strcmpi(test_string, "mscroll") ) |
585 { | 585 { |
586 pItems[item_counter].uEquipType = 17; | 586 pItems[item_counter].uEquipType = 17; |
587 break; | 587 break; |
588 } | 588 } |
589 if ( !_strcmpi(test_string, "gold") ) | 589 if ( !_strcmpi(test_string, "gold") ) |
590 { | 590 { |
591 pItems[item_counter].uEquipType = 18; | 591 pItems[item_counter].uEquipType = EQUIP_GOLD; |
592 break; | 592 break; |
593 } | 593 } |
594 if ( !_strcmpi(test_string, "gem") ) | 594 if ( !_strcmpi(test_string, "gem") ) |
595 { | 595 { |
596 pItems[item_counter].uEquipType = 19; | 596 pItems[item_counter].uEquipType = EQUIP_GEM; |
597 break; | 597 break; |
598 } | 598 } |
599 pItems[item_counter].uEquipType = 20; | 599 pItems[item_counter].uEquipType = EQUIP_NONE; |
600 break; | 600 break; |
601 } | 601 } |
602 case 5: //Skill Group | 602 case 5: //Skill Group |
603 { | 603 { |
604 if ( !_strcmpi(test_string, "staff") ) | 604 if ( !_strcmpi(test_string, "staff") ) |