Module:Block value: Difference between revisions

m Undo revision 1424217 by Magiczocker (talk)
mNo edit summary
Line 11: Line 11:


-- Strip trailing "s" on everything but these
-- Strip trailing "s" on everything but these
if type=="blast resistance" then
else
local keepS = {
local keepS = {
glass = true,
glass = true,
Line 22: Line 24:
seagrass = true
seagrass = true
}
}
if type~="Blast resistance" and not keepS[block:match( '%w+$' )] then
if not keepS[block:match( '%w+$' )] then
block = block:gsub( 's$', '' )
block = block:gsub( 's$', '' )
end
end
-- Other transforms
-- Other transforms
    if type~="Blast resistance" then
block = block
block = block
:gsub( 'wooden', 'wood' )
:gsub( 'wooden', 'wood' )