Line 48: |
Line 48: |
| | | |
| -- [[Category:Todo]]: need something better here | | -- [[Category:Todo]]: need something better here |
− | local friendTypes = { | + | local friendTypes = require('Module:Fleets/Names') |
− | ['Early Fall 2018 Event'] = {
| |
− | ['DesDiv 31'] = {
| |
− | 'Kishinami',
| |
− | 'Naganami',
| |
− | },
| |
− | ['Europe Fleet'] = {
| |
− | 'Gotland',
| |
− | 'Italia',
| |
− | 'Littorio',
| |
− | 'Nelson',
| |
− | 'Pola',
| |
− | 'Roma',
| |
− | 'Warspite',
| |
− | 'Zara',
| |
− | 'Commandant Teste',
| |
− | },
| |
− | ['US Fleet'] = {
| |
− | 'Intrepid',
| |
− | 'Saratoga'
| |
− | }
| |
− | },
| |
− | ['Winter 2019 Event'] = {
| |
− | ['2 BB 2 DD'] = { 'Hiei' },
| |
− | ['Nisshin'] = { 'Nisshin' },
| |
− | ['Yamato'] = { 'Yamato' },
| |
− | ['Shinyou'] = { 'Shinyou' },
| |
− | ['4 DD'] = { 'Kazagumo' },
| |
− | ['2-3 DD'] = { 'Minegumo', 'Kishinami', 'Ayanami' },
| |
− | ['Yuugumo-class'] = { 'Hamanami', 'Hayanami' },
| |
− | }
| |
− | }
| |
| | | |
| local function getFleetType(fleet, name) | | local function getFleetType(fleet, name) |
Line 232: |
Line 201: |
| '-', 'Shigure/Kai Ni', 'Type 3 Active Sonar', 'Type 3 Active Sonar', | | '-', 'Shigure/Kai Ni', 'Type 3 Active Sonar', 'Type 3 Active Sonar', |
| }), | | }), |
− | test2 = function() | + | test2 = render({ |
− | return render({
| + | friend = 'Early Fall 2018 Event', |
− | friend = 'Early Fall 2018 Event',
| + | }), |
− | })
| |
− | end,
| |
| test3 = render({ | | test3 = render({ |
| friend = 'Early Fall 2018 Event', | | friend = 'Early Fall 2018 Event', |
| map = 'E-5', | | map = 'E-5', |
− | }),
| |
− | test4 = getFleetType({
| |
− | { ship = 'Littorio' }
| |
| }), | | }), |
| } | | } |
| + | |
| -- print(p.test1) | | -- print(p.test1) |
| -- print(p.test2) | | -- print(p.test2) |
| -- print(p.test3) | | -- print(p.test3) |