Changes

gangut addition
Line 36: Line 36:  
kanji = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], 1, formNum - 1)
 
kanji = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], 1, formNum - 1)
 
form = " due"
 
form = " due"
 +
elseif mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sдва") ~= nil then
 +
formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sдва")
 +
kanji = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], 1, formNum - 1)
 +
form = " два"
 +
elseif mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sреволюция") ~= nil then -- Gangut "Kai" exception
 +
formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sреволюция")
 +
kanji = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], 1, formNum - 1)
 +
form = " революция"
 
else
 
else
 
kanji = shipmodule.data[shipNum]["name"][1]
 
kanji = shipmodule.data[shipNum]["name"][1]
5,421

edits