ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/alchemy.C
(Generate patch)

Comparing deliantra/server/server/alchemy.C (file contents):
Revision 1.14 by root, Tue Dec 26 08:54:59 2006 UTC vs.
Revision 1.15 by root, Tue Dec 26 20:04:09 2006 UTC

593 object *tmp; 593 object *tmp;
594 594
595 remove_contents (cauldron->inv, NULL); 595 remove_contents (cauldron->inv, NULL);
596 switch (rndm (0, 2)) 596 switch (rndm (0, 2))
597 { 597 {
598 case 0: 598 case 0:
599 tmp = get_archetype ("bomb"); 599 tmp = get_archetype ("bomb");
600 tmp->stats.dam = random_roll (1, level, op, PREFER_LOW); 600 tmp->stats.dam = random_roll (1, level, op, PREFER_LOW);
601 tmp->stats.hp = random_roll (1, level, op, PREFER_LOW); 601 tmp->stats.hp = random_roll (1, level, op, PREFER_LOW);
602 new_draw_info_format (NDI_UNIQUE, 0, op, "The %s creates a bomb!", &cauldron->name); 602 new_draw_info_format (NDI_UNIQUE, 0, op, "The %s creates a bomb!", &cauldron->name);
603 break; 603 break;
604 604
605 default: 605 default:
606 tmp = get_archetype ("fireball"); 606 tmp = get_archetype ("fireball");
607 tmp->stats.dam = random_roll (1, level, op, PREFER_LOW) / 5 + 1; 607 tmp->stats.dam = random_roll (1, level, op, PREFER_LOW) / 5 + 1;
608 tmp->stats.hp = random_roll (1, level, op, PREFER_LOW) / 10 + 2; 608 tmp->stats.hp = random_roll (1, level, op, PREFER_LOW) / 10 + 2;
609 new_draw_info_format (NDI_UNIQUE, 0, op, "The %s erupts in flame!", &cauldron->name); 609 new_draw_info_format (NDI_UNIQUE, 0, op, "The %s erupts in flame!", &cauldron->name);
610 break; 610 break;
611 } 611 }
612 tmp->x = cauldron->x, tmp->y = cauldron->y; 612
613 insert_ob_in_map (tmp, op->map, NULL, 0); 613 op->insert_at (cauldron);
614 return; 614 return;
615 615
616 } 616 }
617 else if (level < 60) 617 else if (level < 60)
618 { /* CREATE MONSTER */ 618 { /* CREATE MONSTER */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines