Make leaves climbable

This commit is contained in:
Live session user 2015-01-17 17:34:05 -05:00 committed by darkrose
parent 509e0b82aa
commit c873195818
1 changed files with 28 additions and 0 deletions

View File

@ -124,6 +124,8 @@ void content_mapnode_plants(bool repeat)
f->fuel_time = 20; f->fuel_time = 20;
f->type = CMT_WOOD; f->type = CMT_WOOD;
f->hardness = 1.0; f->hardness = 1.0;
f->walkable = false;
f->climbable = true;
f->suffocation_per_second = 0; f->suffocation_per_second = 0;
lists::add("creative",i); lists::add("creative",i);
@ -144,6 +146,8 @@ void content_mapnode_plants(bool repeat)
f->fuel_time = 20; f->fuel_time = 20;
f->type = CMT_WOOD; f->type = CMT_WOOD;
f->hardness = 1.0; f->hardness = 1.0;
f->walkable = false;
f->climbable = true;
f->suffocation_per_second = 0; f->suffocation_per_second = 0;
lists::add("creative",i); lists::add("creative",i);
@ -164,6 +168,8 @@ void content_mapnode_plants(bool repeat)
f->fuel_time = 20; f->fuel_time = 20;
f->type = CMT_WOOD; f->type = CMT_WOOD;
f->hardness = 1.0; f->hardness = 1.0;
f->walkable = false;
f->climbable = true;
f->suffocation_per_second = 0; f->suffocation_per_second = 0;
lists::add("creative",i); lists::add("creative",i);
@ -184,6 +190,8 @@ void content_mapnode_plants(bool repeat)
f->fuel_time = 20; f->fuel_time = 20;
f->type = CMT_WOOD; f->type = CMT_WOOD;
f->hardness = 1.0; f->hardness = 1.0;
f->walkable = false;
f->climbable = true;
f->suffocation_per_second = 0; f->suffocation_per_second = 0;
lists::add("creative",i); lists::add("creative",i);
@ -214,6 +222,8 @@ void content_mapnode_plants(bool repeat)
f->description = wgettext("Leaves"); f->description = wgettext("Leaves");
f->light_propagates = true; f->light_propagates = true;
f->air_equivalent = true; f->air_equivalent = true;
f->walkable = false;
f->climbable = true;
f->param_type = CPT_LIGHT; f->param_type = CPT_LIGHT;
//f->is_ground_content = true; //f->is_ground_content = true;
if (new_style_leaves) { if (new_style_leaves) {
@ -247,6 +257,8 @@ void content_mapnode_plants(bool repeat)
f->description = wgettext("Apple Tree Leaves"); f->description = wgettext("Apple Tree Leaves");
f->light_propagates = true; f->light_propagates = true;
f->air_equivalent = true; f->air_equivalent = true;
f->walkable = false;
f->climbable = true;
f->param_type = CPT_LIGHT; f->param_type = CPT_LIGHT;
//f->is_ground_content = true; //f->is_ground_content = true;
if (new_style_leaves) { if (new_style_leaves) {
@ -280,6 +292,8 @@ void content_mapnode_plants(bool repeat)
f->description = wgettext("Jungle Leaves"); f->description = wgettext("Jungle Leaves");
f->light_propagates = true; f->light_propagates = true;
f->air_equivalent = true; f->air_equivalent = true;
f->walkable = false;
f->climbable = true;
f->param_type = CPT_LIGHT; f->param_type = CPT_LIGHT;
//f->is_ground_content = true; //f->is_ground_content = true;
if (new_style_leaves) { if (new_style_leaves) {
@ -313,6 +327,8 @@ void content_mapnode_plants(bool repeat)
f->description = wgettext("Conifer Leaves"); f->description = wgettext("Conifer Leaves");
f->light_propagates = true; f->light_propagates = true;
f->air_equivalent = true; f->air_equivalent = true;
f->walkable = false;
f->climbable = true;
f->param_type = CPT_LIGHT; f->param_type = CPT_LIGHT;
//f->is_ground_content = true; //f->is_ground_content = true;
if (new_style_leaves) { if (new_style_leaves) {
@ -346,6 +362,8 @@ void content_mapnode_plants(bool repeat)
f->description = wgettext("Trimmed Leaves"); f->description = wgettext("Trimmed Leaves");
f->light_propagates = true; f->light_propagates = true;
f->air_equivalent = true; f->air_equivalent = true;
f->walkable = false;
f->climbable = true;
f->param_type = CPT_LIGHT; f->param_type = CPT_LIGHT;
if (new_style_leaves) { if (new_style_leaves) {
f->draw_type = CDT_GLASSLIKE; f->draw_type = CDT_GLASSLIKE;
@ -376,6 +394,8 @@ void content_mapnode_plants(bool repeat)
f->description = wgettext("Trimmed Apple Tree Leaves"); f->description = wgettext("Trimmed Apple Tree Leaves");
f->light_propagates = true; f->light_propagates = true;
f->air_equivalent = true; f->air_equivalent = true;
f->walkable = false;
f->climbable = true;
f->param_type = CPT_LIGHT; f->param_type = CPT_LIGHT;
if (new_style_leaves) { if (new_style_leaves) {
f->draw_type = CDT_GLASSLIKE; f->draw_type = CDT_GLASSLIKE;
@ -406,6 +426,8 @@ void content_mapnode_plants(bool repeat)
f->description = wgettext("Trimmed Jungle Leaves"); f->description = wgettext("Trimmed Jungle Leaves");
f->light_propagates = true; f->light_propagates = true;
f->air_equivalent = true; f->air_equivalent = true;
f->walkable = false;
f->climbable = true;
f->param_type = CPT_LIGHT; f->param_type = CPT_LIGHT;
if (new_style_leaves) { if (new_style_leaves) {
f->draw_type = CDT_GLASSLIKE; f->draw_type = CDT_GLASSLIKE;
@ -436,6 +458,8 @@ void content_mapnode_plants(bool repeat)
f->description = wgettext("Trimmed Conifer Leaves"); f->description = wgettext("Trimmed Conifer Leaves");
f->light_propagates = true; f->light_propagates = true;
f->air_equivalent = true; f->air_equivalent = true;
f->walkable = false;
f->climbable = true;
f->param_type = CPT_LIGHT; f->param_type = CPT_LIGHT;
if (new_style_leaves) { if (new_style_leaves) {
f->draw_type = CDT_GLASSLIKE; f->draw_type = CDT_GLASSLIKE;
@ -466,6 +490,8 @@ void content_mapnode_plants(bool repeat)
f->description = wgettext("Apple Tree Blossom"); f->description = wgettext("Apple Tree Blossom");
f->light_propagates = true; f->light_propagates = true;
f->air_equivalent = true; f->air_equivalent = true;
f->walkable = false;
f->climbable = true;
f->param_type = CPT_LIGHT; f->param_type = CPT_LIGHT;
//f->is_ground_content = true; //f->is_ground_content = true;
if (new_style_leaves) { if (new_style_leaves) {
@ -496,6 +522,8 @@ void content_mapnode_plants(bool repeat)
f->description = wgettext("Trimmed Apple Tree Blossom"); f->description = wgettext("Trimmed Apple Tree Blossom");
f->light_propagates = true; f->light_propagates = true;
f->air_equivalent = true; f->air_equivalent = true;
f->walkable = false;
f->climbable = true;
f->param_type = CPT_LIGHT; f->param_type = CPT_LIGHT;
if (new_style_leaves) { if (new_style_leaves) {
f->draw_type = CDT_GLASSLIKE; f->draw_type = CDT_GLASSLIKE;