Rename custom field use snake_case and _

This commit is contained in:
Van
2026-02-08 18:42:07 +03:00
parent 04f90a7b2d
commit bc03aa4ba6
10 changed files with 87 additions and 78 deletions

View File

@@ -5,7 +5,7 @@ local Node = Mod.getInfo('smc__core__node').require('Node')
local defaultLiquidDef = {
settings = {
name = '',
addModName = false,
_add_mod_name = false,
tiles = {},
waving = 3,
use_texture_alpha = "blend",

View File

@@ -21,7 +21,7 @@ for i=0, 3 do
Plant:new({
settings = {
name = 'plant'..tostring(i),
title = 'Plant',
_title = 'Plant',
tiles = { ts:t(i,0) },
place_param2 = 3,
},

View File

@@ -8,7 +8,7 @@ local Node = Mod.getInfo('smc__core__node').require('Node')
local defaultRockDef = {
settings = {
name = "",
description = "A rocks",
_description = "A rocks",
tiles = {},
groups = {
dig_immediate = 2,

View File

@@ -8,7 +8,7 @@ local Node = Mod.getInfo('smc__core__node').require('Node')
local defaultSoilDef = {
settings = {
name = "",
description = "A soil",
_description = "A soil",
tiles = {},
groups = {
dig_immediate = 2,
@@ -47,7 +47,7 @@ soilFactory:registerItems({
{
settings = {
name = "clay_soil_baren",
title = "Barren Clay Soil",
_title = "Barren Clay Soil",
--description = "",
tiles = clayTiles,
},
@@ -56,7 +56,7 @@ soilFactory:registerItems({
{
settings = {
name = "clay_soil_poor",
title = "Poor Clay Soil",
_title = "Poor Clay Soil",
--description = "",
tiles = clayTiles,
},
@@ -65,7 +65,7 @@ soilFactory:registerItems({
{
settings = {
name = "clay_soil_moderate",
title = "Moderate Clay Soil",
_title = "Moderate Clay Soil",
--description = "",
tiles = clayTiles,
},
@@ -74,7 +74,7 @@ soilFactory:registerItems({
{
settings = {
name = "clay_soil_fertile",
title = "Fertile Clay Soil",
_title = "Fertile Clay Soil",
--description = "",
tiles = clayTiles,
},
@@ -83,7 +83,7 @@ soilFactory:registerItems({
{
settings = {
name = "clay_soil_rich",
title = "Rich Clay Soil",
_title = "Rich Clay Soil",
--description = "",
tiles = clayTiles,
},
@@ -96,7 +96,7 @@ soilFactory:registerItems({
{
settings = {
name = "sandy_soil_baren",
title = "Barren Sandy Soil",
_title = "Barren Sandy Soil",
--description = "",
tiles = sandyTiles,
},
@@ -105,7 +105,7 @@ soilFactory:registerItems({
{
settings = {
name = "sandy_soil_poor",
title = "Poor Sandy Soil",
_title = "Poor Sandy Soil",
--description = "",
tiles = sandyTiles,
},
@@ -114,7 +114,7 @@ soilFactory:registerItems({
{
settings = {
name = "sandy_soil_moderate",
title = "Moderate Sandy Soil",
_title = "Moderate Sandy Soil",
--description = "",
tiles = sandyTiles,
},
@@ -123,7 +123,7 @@ soilFactory:registerItems({
{
settings = {
name = "sandy_soil_fertile",
title = "Fertile Sandy Soil",
_title = "Fertile Sandy Soil",
--description = "",
tiles = sandyTiles,
},
@@ -132,7 +132,7 @@ soilFactory:registerItems({
{
settings = {
name = "sandy_soil_rich",
title = "Rich Sandy Soil",
_title = "Rich Sandy Soil",
--description = "",
tiles = sandyTiles,
},
@@ -145,7 +145,7 @@ soilFactory:registerItems({
{
settings = {
name = "mixed_soil_baren",
title = "Barren Mixed Soil",
_title = "Barren Mixed Soil",
--description = "",
tiles = mixedTiles,
},
@@ -154,7 +154,7 @@ soilFactory:registerItems({
{
settings = {
name = "mixed_soil_poor",
title = "Poor Mixed Soil",
_title = "Poor Mixed Soil",
--description = "",
tiles = mixedTiles,
},
@@ -163,7 +163,7 @@ soilFactory:registerItems({
{
settings = {
name = "mixed_soil_moderate",
title = "Moderate Mixed Soil",
_title = "Moderate Mixed Soil",
--description = "",
tiles = mixedTiles,
},
@@ -172,7 +172,7 @@ soilFactory:registerItems({
{
settings = {
name = "mixed_soil_fertile",
title = "Fertile Mixed Soil",
_title = "Fertile Mixed Soil",
--description = "",
tiles = mixedTiles,
},
@@ -181,7 +181,7 @@ soilFactory:registerItems({
{
settings = {
name = "mixed_soil_rich",
title = "Rich Mixed Soil",
_title = "Rich Mixed Soil",
--description = "",
tiles = mixedTiles,
},
@@ -194,7 +194,7 @@ soilFactory:registerItems({
{
settings = {
name = "rocky_soil_baren",
title = "Barren Rocky Soil",
_title = "Barren Rocky Soil",
--description = "",
tiles = rockyTiles,
rarity = 'uncommon'
@@ -204,7 +204,7 @@ soilFactory:registerItems({
{
settings = {
name = "rocky_soil_poor",
title = "Poor Rocky Soil",
_title = "Poor Rocky Soil",
--description = "",
tiles = rockyTiles,
rarity = 'distinguished'
@@ -214,7 +214,7 @@ soilFactory:registerItems({
{
settings = {
name = "rocky_soil_moderate",
title = "Moderate Rocky Soil",
_title = "Moderate Rocky Soil",
--description = "",
tiles = rockyTiles,
rarity = 'eminent'
@@ -224,7 +224,7 @@ soilFactory:registerItems({
{
settings = {
name = "rocky_soil_fertile",
title = "Fertile Rocky Soil",
_title = "Fertile Rocky Soil",
--description = "",
tiles = rockyTiles,
rarity = 'prime'
@@ -234,7 +234,7 @@ soilFactory:registerItems({
{
settings = {
name = "rocky_soil_rich",
title = "Rich Rocky Soil",
_title = "Rich Rocky Soil",
--description = "",
tiles = rockyTiles,
},
@@ -253,6 +253,6 @@ Node:new({
dig_immediate = 2,
soil_fertiliry = 100, -- Soil fertility for agriculture
},
rarity = 'unique'
_rarity = 'unique'
}
})

View File

@@ -8,7 +8,7 @@ local TileSheet = Mod.getInfo('smc__core__tilesheet').require('TileSheet')
local defaultRockDef = {
settings = {
name = "",
description = "A log",
_description = "A log",
tiles = {},
groups = {
dig_immediate = 2,
@@ -21,7 +21,7 @@ local defaultRockDef = {
local defaultPlanksDef = {
settings = {
name = "",
description = "A planks",
_description = "A planks",
tiles = {},
groups = {
dig_immediate = 2,
@@ -54,7 +54,7 @@ logFactory:registerItems({
{
settings = {
name = "marentine_log",
title = "Marentine Log",
_title = "Marentine Log",
--description = "",
tiles = t(0, 1),
},
@@ -63,7 +63,7 @@ logFactory:registerItems({
{
settings = {
name = "allwhere_log",
title = "Allwhere Log",
_title = "Allwhere Log",
--description = "",
tiles = t(2, 1),
},
@@ -72,7 +72,7 @@ logFactory:registerItems({
{
settings = {
name = "fis_log",
title = "Fis Log",
_title = "Fis Log",
--description = "",
tiles = t(4, 1),
},
@@ -81,7 +81,7 @@ logFactory:registerItems({
{
settings = {
name = "tammoy_log",
title = "Tammoy Log",
_title = "Tammoy Log",
--description = "",
tiles = t(6, 1),
},
@@ -90,7 +90,7 @@ logFactory:registerItems({
{
settings = {
name = "dallalia_log",
title = "Dallalia Log",
_title = "Dallalia Log",
--description = "",
tiles = t(8, 1),
},
@@ -99,7 +99,7 @@ logFactory:registerItems({
{
settings = {
name = "zuph_log",
title = "Zuph Log",
_title = "Zuph Log",
--description = "",
tiles = t(10, 1),
},
@@ -111,7 +111,7 @@ planksFactory:registerItems({
{
settings = {
name = "marentine_planks",
title = "Marentine Planks",
_title = "Marentine Planks",
--description = "",
tiles = { logTileSheet:t(0, 4) },
},
@@ -120,7 +120,7 @@ planksFactory:registerItems({
{
settings = {
name = "allwhere_planks",
title = "Allwhere Planks",
_title = "Allwhere Planks",
--description = "",
tiles = { logTileSheet:t(2, 4) },
},
@@ -129,7 +129,7 @@ planksFactory:registerItems({
{
settings = {
name = "fis_planks",
title = "Fis Planks",
_title = "Fis Planks",
--description = "",
tiles = { logTileSheet:t(4, 4) },
},
@@ -138,7 +138,7 @@ planksFactory:registerItems({
{
settings = {
name = "tammoy_planks",
title = "Tammoy Planks",
_title = "Tammoy Planks",
--description = "",
tiles = { logTileSheet:t(6, 4) },
},
@@ -147,7 +147,7 @@ planksFactory:registerItems({
{
settings = {
name = "dallalia_planks",
title = "Dallalia Planks",
_title = "Dallalia Planks",
--description = "",
tiles = { logTileSheet:t(8, 4) },
},
@@ -156,7 +156,7 @@ planksFactory:registerItems({
{
settings = {
name = "zuph_planks",
title = "Zuph Planks",
_title = "Zuph Planks",
--description = "",
tiles = { logTileSheet:t(10, 4) },
},
@@ -183,7 +183,7 @@ planksFactory:registerItems({
{
settings = {
name = "case_closed",
title = "Case",
_title = "Case",
--description = "",
tiles = t(0,0)
},
@@ -192,7 +192,7 @@ planksFactory:registerItems({
{
settings = {
name = "case_open",
title = "Case",
_title = "Case",
--description = "",
tiles = t(1,0);
drawtype = 'nodebox';