| 3439 | RESTORE_WARNING_UNREACHABLE_CODE |
| 3440 | |
| 3441 | staticfn int |
| 3442 | get_table_buc(lua_State *L) |
| 3443 | { |
| 3444 | static const char *const bucs[] = { |
| 3445 | "random", "blessed", "uncursed", "cursed", |
| 3446 | "not-cursed", "not-uncursed", "not-blessed", NULL, |
| 3447 | }; |
| 3448 | static const int bucs2i[] = { 0, 1, 2, 3, 4, 5, 6, 0 }; |
| 3449 | int curse_state = bucs2i[get_table_option(L, "buc", "random", bucs)]; |
| 3450 | |
| 3451 | return curse_state; |
| 3452 | } |
| 3453 | |
| 3454 | int |
| 3455 | get_table_objclass(lua_State *L) |
no test coverage detected