|
|
@ -1,10 +1,36 @@
|
|
|
|
export const type = {
|
|
|
|
export const type = {
|
|
|
|
air: {type: 'air', hp: 0, walkable: true},
|
|
|
|
air: {type: 'air', hp: 0, walkable: true},
|
|
|
|
grass: {type: 'grass', hp: 1, walkable: true},
|
|
|
|
grass: {type: 'grass', hp: 1, walkable: false},
|
|
|
|
leaves: {type: 'leaves', hp: 1, walkable: true},
|
|
|
|
|
|
|
|
wood: {type: 'wood', hp: 5, walkable: true},
|
|
|
|
tree_top_left: {type: 'tree_top_left', hp: 5, walkable: true},
|
|
|
|
|
|
|
|
tree_top_middle: {type: 'tree_top_middle', hp: 5, walkable: true},
|
|
|
|
|
|
|
|
tree_top_right: {type: 'tree_top_right', hp: 5, walkable: true},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tree_crown_left: {type: 'tree_crown_left', hp: 5, walkable: true},
|
|
|
|
|
|
|
|
tree_crown_middle: {type: 'tree_crown_middle', hp: 5, walkable: true},
|
|
|
|
|
|
|
|
tree_crown_right: {type: 'tree_crown_right', hp: 5, walkable: true},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tree_trunk_left: {type: 'tree_trunk_left', hp: 5, walkable: true},
|
|
|
|
|
|
|
|
tree_trunk_middle: {type: 'tree_trunk_middle', hp: 5, walkable: true},
|
|
|
|
|
|
|
|
tree_trunk_right: {type: 'tree_trunk_right', hp: 5, walkable: true},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tree_root_left: {type: 'tree_root_left', hp: 5, walkable: true},
|
|
|
|
|
|
|
|
tree_root_middle: {type: 'tree_root_middle', hp: 5, walkable: true},
|
|
|
|
|
|
|
|
tree_root_right: {type: 'tree_root_right', hp: 5, walkable: true},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tree_top_left_mixed: {type: 'tree_top_left_mixed', hp: 5, walkable: true},
|
|
|
|
|
|
|
|
tree_crown_left_mixed: {type: 'tree_crown_left_mixed', hp: 5, walkable: true},
|
|
|
|
|
|
|
|
tree_trunk_left_mixed: {type: 'tree_trunk_left_mixed', hp: 5, walkable: true},
|
|
|
|
|
|
|
|
tree_root_left_mixed: {type: 'tree_root_left_mixed', hp: 5, walkable: true},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tree_top_right_mixed: {type: 'tree_top_right_mixed', hp: 5, walkable: true},
|
|
|
|
|
|
|
|
tree_crown_right_mixed: {type: 'tree_crown_right_mixed', hp: 5, walkable: true},
|
|
|
|
|
|
|
|
tree_trunk_right_mixed: {type: 'tree_trunk_right_mixed', hp: 5, walkable: true},
|
|
|
|
|
|
|
|
tree_root_right_mixed: {type: 'tree_root_right_mixed', hp: 5, walkable: true},
|
|
|
|
|
|
|
|
|
|
|
|
soil: {type: 'soil', hp: 2, walkable: false},
|
|
|
|
soil: {type: 'soil', hp: 2, walkable: false},
|
|
|
|
gravel: {type: 'gravel', hp: 5, walkable: false},
|
|
|
|
soil_gravel: {type: 'soil_gravel', hp: 5, walkable: false},
|
|
|
|
|
|
|
|
stone_gravel: {type: 'stone_gravel', hp: 5, walkable: false},
|
|
|
|
stone: {type: 'stone', hp: 10, walkable: false},
|
|
|
|
stone: {type: 'stone', hp: 10, walkable: false},
|
|
|
|
bedrock: {type: 'bedrock', hp: 25, walkable: false},
|
|
|
|
bedrock: {type: 'bedrock', hp: 25, walkable: false},
|
|
|
|
cave: {type: 'cave', hp: 0, walkable: true},
|
|
|
|
cave: {type: 'cave', hp: 0, walkable: true},
|
|
|
@ -12,7 +38,7 @@ export const type = {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export const level = {
|
|
|
|
export const level = {
|
|
|
|
peak: 24,
|
|
|
|
treeTop: 24,
|
|
|
|
ground: 28,
|
|
|
|
ground: 28,
|
|
|
|
rock: 32,
|
|
|
|
rock: 32,
|
|
|
|
underground: 48,
|
|
|
|
underground: 48,
|
|
|
@ -20,10 +46,10 @@ export const level = {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export const probability = {
|
|
|
|
export const probability = {
|
|
|
|
tree: 0.1,
|
|
|
|
tree: 0.2,
|
|
|
|
soil_hole: 0.3,
|
|
|
|
soil_hole: 0.3,
|
|
|
|
soil_gravel: 0.2,
|
|
|
|
soil_gravel: 0.2,
|
|
|
|
rock_gravel: 0.1,
|
|
|
|
stone_gravel: 0.1,
|
|
|
|
cave: 0.5,
|
|
|
|
cave: 0.5,
|
|
|
|
fray: 0.4
|
|
|
|
fray: 0.4
|
|
|
|
}
|
|
|
|
}
|
|
|
|