… | |
… | |
1135 | |
1135 | |
1136 | const_iv (MAP_CLIENT_X) const_iv (MAP_CLIENT_Y) |
1136 | const_iv (MAP_CLIENT_X) const_iv (MAP_CLIENT_Y) |
1137 | |
1137 | |
1138 | const_iv (MAX_TIME) |
1138 | const_iv (MAX_TIME) |
1139 | |
1139 | |
1140 | const_iv (NUM_BODY_LOCATIONS) const_iv (BODY_ARMS) |
1140 | const_iv (NUM_BODY_LOCATIONS) |
|
|
1141 | const_iv (body_range) const_iv (body_shield) const_iv (body_combat) |
|
|
1142 | const_iv (body_arm) const_iv (body_torso) const_iv (body_head) |
|
|
1143 | const_iv (body_neck) const_iv (body_skill) const_iv (body_finger) |
|
|
1144 | const_iv (body_shoulder) const_iv (body_foot) const_iv (body_hand) |
|
|
1145 | const_iv (body_wrist) const_iv (body_waist) |
1141 | |
1146 | |
1142 | const_iv (PLAYER) const_iv (TRANSPORT) const_iv (ROD) const_iv (TREASURE) |
1147 | const_iv (PLAYER) const_iv (TRANSPORT) const_iv (ROD) const_iv (TREASURE) |
1143 | const_iv (POTION) const_iv (FOOD) const_iv (POISON) const_iv (BOOK) |
1148 | const_iv (POTION) const_iv (FOOD) const_iv (POISON) const_iv (BOOK) |
1144 | const_iv (CLOCK) const_iv (ARROW) const_iv (BOW) const_iv (WEAPON) |
1149 | const_iv (CLOCK) const_iv (ARROW) const_iv (BOW) const_iv (WEAPON) |
1145 | const_iv (ARMOUR) const_iv (PEDESTAL) const_iv (ALTAR) const_iv (LOCKED_DOOR) |
1150 | const_iv (ARMOUR) const_iv (PEDESTAL) const_iv (ALTAR) const_iv (LOCKED_DOOR) |
… | |
… | |
1405 | default: croak ("cf::rndm requires none, one or two parameters."); break; |
1410 | default: croak ("cf::rndm requires none, one or two parameters."); break; |
1406 | } |
1411 | } |
1407 | OUTPUT: |
1412 | OUTPUT: |
1408 | RETVAL |
1413 | RETVAL |
1409 | |
1414 | |
|
|
1415 | NV clamp (NV value, NV min_value, NV max_value) |
|
|
1416 | CODE: |
|
|
1417 | RETVAL = clamp (value, min_value, max_value); |
|
|
1418 | OUTPUT: |
|
|
1419 | RETVAL |
|
|
1420 | |
|
|
1421 | NV lerp (NV value, NV min_in, NV max_in, NV min_out, NV max_out) |
|
|
1422 | CODE: |
|
|
1423 | RETVAL = lerp (value, min_in, max_in, min_out, max_out); |
|
|
1424 | OUTPUT: |
|
|
1425 | RETVAL |
|
|
1426 | |
|
|
1427 | void cede_to_tick () |
|
|
1428 | CODE: |
|
|
1429 | coroapi::cede_to_tick (); |
|
|
1430 | |
1410 | void server_tick () |
1431 | void server_tick () |
1411 | CODE: |
1432 | CODE: |
1412 | runtime = SvNVx (sv_runtime); |
1433 | runtime = SvNVx (sv_runtime); |
1413 | server_tick (); |
1434 | server_tick (); |
1414 | |
1435 | |
… | |
… | |
1670 | CODE: |
1691 | CODE: |
1671 | { |
1692 | { |
1672 | if (slot >= NUM_BODY_LOCATIONS) |
1693 | if (slot >= NUM_BODY_LOCATIONS) |
1673 | croak ("body slot index out of range"); |
1694 | croak ("body slot index out of range"); |
1674 | |
1695 | |
1675 | RETVAL = ix ? op->slot[slot].info : op->slot[slot].used; |
1696 | RETVAL = ix ? op->slot[slot].used : op->slot[slot].info; |
1676 | |
1697 | |
1677 | if (items > 2) |
1698 | if (items > 2) |
1678 | if (ix) |
1699 | if (ix) |
|
|
1700 | op->slot[slot].used = value; |
|
|
1701 | else |
1679 | op->slot[slot].info = value; |
1702 | op->slot[slot].info = value; |
1680 | else |
|
|
1681 | op->slot[slot].used = value; |
|
|
1682 | } |
1703 | } |
1683 | OUTPUT: |
1704 | OUTPUT: |
1684 | RETVAL |
1705 | RETVAL |
1685 | |
1706 | |
1686 | object *find_best_object_match (object *op, utf8_string match) |
1707 | object *find_best_object_match (object *op, utf8_string match) |