… | |
… | |
139 | |
139 | |
140 | f.next (); |
140 | f.next (); |
141 | |
141 | |
142 | for (;;) |
142 | for (;;) |
143 | { |
143 | { |
144 | coroapi::cede_to_tick_every (10); |
144 | coroapi::cede_to_tick (); |
145 | |
145 | |
146 | switch (f.kw) |
146 | switch (f.kw) |
147 | { |
147 | { |
148 | case KW_arch: |
148 | case KW_arch: |
149 | t->item = archetype::get (f.get_str ()); |
149 | t->item = archetype::get (f.get_str ()); |
… | |
… | |
1128 | * Allocate and return the pointer to an empty artifactlist structure. |
1128 | * Allocate and return the pointer to an empty artifactlist structure. |
1129 | */ |
1129 | */ |
1130 | static artifactlist * |
1130 | static artifactlist * |
1131 | get_empty_artifactlist (void) |
1131 | get_empty_artifactlist (void) |
1132 | { |
1132 | { |
1133 | return salloc0 <artifactlist> (); |
1133 | return salloc0<artifactlist> (); |
1134 | } |
1134 | } |
1135 | |
1135 | |
1136 | /* |
1136 | /* |
1137 | * Allocate and return the pointer to an empty artifact structure. |
1137 | * Allocate and return the pointer to an empty artifact structure. |
1138 | */ |
1138 | */ |
1139 | static artifact * |
1139 | static artifact * |
1140 | get_empty_artifact (void) |
1140 | get_empty_artifact (void) |
1141 | { |
1141 | { |
1142 | return salloc0 <artifact> (); |
1142 | return salloc0<artifact> (); |
1143 | } |
1143 | } |
1144 | |
1144 | |
1145 | /* |
1145 | /* |
1146 | * Searches the artifact lists and returns one that has the same type |
1146 | * Searches the artifact lists and returns one that has the same type |
1147 | * of objects on it. |
1147 | * of objects on it. |