Changes

m
no edit summary
Line 142: Line 142:  
     name = names[name] or name
 
     name = names[name] or name
 
     return name
 
     return name
 +
end
 +
 +
function NanaminFunctions.shorten_name(name)
 +
    --This takes an equipment name listed on Sandbox/EquipmentListKai/TypeSorted
 +
    --and switches it with a shorter version of the name.
 +
    local shortened = {
 +
        ["Example"] = "Ex",
 +
    }
 +
   
 +
    return shortened[name] or name
 
end
 
end
    
return NanaminFunctions
 
return NanaminFunctions
48

edits