All files / js bones.js

73.33% Statements 22/30
100% Branches 2/2
20% Functions 1/5
73.33% Lines 22/30

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 3173x 73x 73x 73x 73x 73x 73x 73x 2x 2x 73x 73x 73x     73x 73x 73x     73x 73x 73x     73x 73x 73x      
// bones.js — Bones file routines (port of bones.c)
// Handles saving and loading bones levels from dead characters.
// In teleport, bones files are not used, so this is mostly stubs.
 
import { game } from './gstate.js';
 
// C ref: bones.c:26 can_make_bones
export function can_make_bones() {
    return false; // No bones in teleport
}
 
// C ref: bones.c:96 savebones
export function savebones(how, when, corpse) {
    // No bones saving
}
 
// C ref: bones.c:271 getbones
export function getbones() {
    return 0; // No bones loading
}
 
// C ref: bones.c:537 delete_bonesfile
export function delete_bonesfile(lev) {
    // No bones files to delete
}
 
// C ref: bones.c:558 bones_include_name
export function bones_include_name(name) {
    return false;
}