… | |
… | |
37 | static const uint64 UUID_GAP = 1<<19; |
37 | static const uint64 UUID_GAP = 1<<19; |
38 | uint32_t mapspace::smellcount = 10000; |
38 | uint32_t mapspace::smellcount = 10000; |
39 | |
39 | |
40 | objectvec objects; |
40 | objectvec objects; |
41 | activevec actives; |
41 | activevec actives; |
|
|
42 | |
|
|
43 | //+GPL |
42 | |
44 | |
43 | short freearr_x[SIZEOFFREE] = { |
45 | short freearr_x[SIZEOFFREE] = { |
44 | 0, |
46 | 0, |
45 | 0, 1, 1, 1, 0, -1, -1, -1, |
47 | 0, 1, 1, 1, 0, -1, -1, -1, |
46 | 0, 1, 2, 2, 2, 2, 2, 1, 0, -1, -2, -2, -2, -2, -2, -1, |
48 | 0, 1, 2, 2, 2, 2, 2, 1, 0, -1, -2, -2, -2, -2, -2, -1, |
… | |
… | |
2540 | return splay (tmp); |
2542 | return splay (tmp); |
2541 | |
2543 | |
2542 | return 0; |
2544 | return 0; |
2543 | } |
2545 | } |
2544 | |
2546 | |
|
|
2547 | //-GPL |
|
|
2548 | |
2545 | void |
2549 | void |
2546 | object::force_set_timer (int duration) |
2550 | object::force_set_timer (int duration) |
2547 | { |
2551 | { |
2548 | this->duration = 1; |
2552 | this->duration = 1; |
2549 | this->speed_left = -1.f; |
2553 | this->speed_left = -1.f; |
… | |
… | |
2558 | force->destroy (); |
2562 | force->destroy (); |
2559 | |
2563 | |
2560 | object *force = get_archetype (FORCE_NAME); |
2564 | object *force = get_archetype (FORCE_NAME); |
2561 | |
2565 | |
2562 | force->slaying = name; |
2566 | force->slaying = name; |
2563 | |
|
|
2564 | force->force_set_timer (duration); |
2567 | force->force_set_timer (duration); |
2565 | |
|
|
2566 | force->flag [FLAG_APPLIED] = true; |
2568 | force->flag [FLAG_APPLIED] = true; |
2567 | |
2569 | |
2568 | return insert (force); |
2570 | return insert (force); |
2569 | } |
2571 | } |
2570 | |
2572 | |
2571 | void |
2573 | void |