1dirname = path.dirname(__file__) 2 3terrain_affinity = { 4 preferred_temperature = 80, 5 preferred_humidity = 350, 6 preferred_fertility = 850, 7 pickiness = 60, 8} 9 10world:new_immovable_type{ 11 name = "mushroom_red_wasteland_sapling", 12 -- TRANSLATORS: This is a fictitious tree. Be creative if you want. 13 descname = _ "Red Mushroom Tree (Sapling)", 14 editor_category = "trees_wasteland", 15 size = "small", 16 attributes = { "tree_sapling" }, 17 terrain_affinity = terrain_affinity, 18 programs = { 19 program = { 20 "animate=idle 42000", 21 "remove=32", 22 "grow=mushroom_red_wasteland_pole", 23 }, 24 }, 25 spritesheets = { 26 idle = { 27 directory = dirname, 28 basename = "sapling", 29 fps = 8, 30 frames = 5, 31 rows = 3, 32 columns = 2, 33 hotspot = { 6, 13 } 34 } 35 }, 36} 37 38world:new_immovable_type{ 39 name = "mushroom_red_wasteland_pole", 40 -- TRANSLATORS: This is a fictitious tree. Be creative if you want. 41 descname = _ "Red Mushroom Tree (Pole)", 42 editor_category = "trees_wasteland", 43 size = "small", 44 attributes = {}, 45 terrain_affinity = terrain_affinity, 46 programs = { 47 program = { 48 "animate=idle 40000", 49 "remove=25", 50 "grow=mushroom_red_wasteland_mature", 51 }, 52 }, 53 spritesheets = { 54 idle = { 55 directory = dirname, 56 basename = "pole", 57 fps = 8, 58 frames = 5, 59 rows = 3, 60 columns = 2, 61 hotspot = { 13, 29 } 62 } 63 }, 64} 65 66world:new_immovable_type{ 67 name = "mushroom_red_wasteland_mature", 68 -- TRANSLATORS: This is a fictitious tree. Be creative if you want. 69 descname = _ "Red Mushroom Tree (Mature)", 70 editor_category = "trees_wasteland", 71 size = "small", 72 attributes = {}, 73 terrain_affinity = terrain_affinity, 74 programs = { 75 program = { 76 "animate=idle 27000", 77 "remove=10", 78 "seed=mushroom_red_wasteland_sapling 100", 79 "animate=idle 29000", 80 "remove=10", 81 "grow=mushroom_red_wasteland_old", 82 }, 83 }, 84 spritesheets = { 85 idle = { 86 directory = dirname, 87 basename = "mature", 88 fps = 8, 89 frames = 5, 90 rows = 3, 91 columns = 2, 92 hotspot = { 19, 49 } 93 } 94 }, 95} 96 97world:new_immovable_type{ 98 name = "mushroom_red_wasteland_old", 99 -- TRANSLATORS: This is a fictitious tree. Be creative if you want. 100 descname = _ "Red Mushroom Tree (Old)", 101 -- TRANSLATORS: This is a fictitious tree. Be creative if you want. 102 species = _ "Red Mushroom Tree", 103 icon = dirname .. "menu.png", 104 editor_category = "trees_wasteland", 105 size = "small", 106 attributes = { "tree" }, 107 terrain_affinity = terrain_affinity, 108 programs = { 109 program = { 110 "animate=idle 800000", 111 "transform=deadtree2 50", 112 "seed=mushroom_red_wasteland_sapling 40", 113 }, 114 fall = { 115 "remove=", 116 }, 117 }, 118 spritesheets = { 119 idle = { 120 directory = dirname, 121 basename = "old", 122 fps = 10, 123 frames = 5, 124 rows = 3, 125 columns = 2, 126 hotspot = { 25, 61 } 127 } 128 }, 129} 130