… | |
… | |
13 | |
13 | |
14 | * IMPORTANT: item_power should be a body slot like other such qualities, |
14 | * IMPORTANT: item_power should be a body slot like other such qualities, |
15 | so they can be sensibly tested against exclusion. Right now, one can |
15 | so they can be sensibly tested against exclusion. Right now, one can |
16 | equip more than item power allows because it is not checked everywhere |
16 | equip more than item power allows because it is not checked everywhere |
17 | (and should not have to be checked, either). |
17 | (and should not have to be checked, either). |
18 | |
|
|
19 | * the following semantics was removed form enter_exit, bring it back sensibly and safely |
|
|
20 | (don't want the savebed set on a random map). |
|
|
21 | /* mids 02/13/2002 if exit is damned, update players death & WoR home-position and delete town portal */ |
|
|
22 | if (QUERY_FLAG(exit_ob, FLAG_DAMNED)) { |
|
|
23 | /* remove an old force with a slaying field == PORTAL_DESTINATION_NAME */ |
|
|
24 | for(tmp=op->inv; tmp != NULL; tmp = tmp->below) { |
|
|
25 | if(tmp->type == FORCE && tmp->slaying && !strcmp(tmp->slaying, PORTAL_DESTINATION_NAME)) break; |
|
|
26 | } |
|
|
27 | if(tmp) { |
|
|
28 | remove_ob(tmp); |
|
|
29 | free_object(tmp); |
|
|
30 | } |
|
|
31 | |
|
|
32 | path_combine_and_normalize(exit_ob->map->path, EXIT_PATH(exit_ob), op->contr->savebed_map, sizeof(op->contr->savebed_map)); |
|
|
33 | op->contr->bed_x = EXIT_X(exit_ob), op->contr->bed_y = EXIT_Y(exit_ob); |
|
|
34 | save_player(op, 1); |
|
|
35 | /* LOG(llevDebug,"enter_exit: Taking damned exit %s to (%d,%d) on map %s\n", |
|
|
36 | * exit_ob->name?exit_ob->name:"(none)", exit_ob->x, exit_ob->y, |
|
|
37 | * path_combine_and_normalize(exit_ob->map->path, EXIT_PATH(exit_ob))); */ |
|
|
38 | } |
|
|
39 | |
18 | |
40 | * new players lack statistics |
19 | * new players lack statistics |
41 | |
20 | |
42 | * 21:37:28 -cfbot:#cf- [Drakna] yeah see meditation heals but it eats up food. but if yoiu have no food you can still |
21 | * 21:37:28 -cfbot:#cf- [Drakna] yeah see meditation heals but it eats up food. but if yoiu have no food you can still |
43 | |
22 | |