Toggle menu
505
2.3K
828
21.8K
Deadlock Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 17:03, 19 October 2024 by SerpentofSet (talk | contribs)

I am bad at the game so I edit the wiki

Below stolen shamelessly from the MediaWiki Scribunto articles

Examples

Invoking module directly

Given Module:Test with the following contents:

local p = {}
function p.main(frame)
   local args = frame.args
   mw.log("log test")
   return args[1]..args["sep"]..args[2]
end
return p

The following invoke call: {{#invoke:Test|a|sep=;|b}} Can be simulated accurately with the following code in the debug console:

=p.main(
   mw.getCurrentFrame():newChild{
      title="Module:Test",
      args={"a",["sep"]=";","b"}
   }
)

Note that in this example the element in the export table which is being evaluated is called "main".

Simplified version

If the module you are debugging does not use any frame object methods (such as frame:preprocess()), like the example above, then the frame object analog(?) does not have to be complete, and the debugging code can be simplified into the following:

=p.main{
   args={"a",["sep"]=";","b"}
}

What's a sandbox  Yamato

Hero Base Health Stats
Hero Starting Added per PI At Max PI
 Warden 550 +45 1180
 Fathom 550 +36 1054
 Pocket 550 +27 928
 Mo & Krill 700 +44 1316
 Dynamo 650 +44 1266
 McGinnis 550 +41 1124
 Holliday 550 +33 1012
 Vyper 550 +30 970
 Abrams 570 +34 1046
 Viscous 550 +38 1082
 Vindicta 525 +20 805
 Kelvin 650 +50 1350
 THE MAGNIFICENT SINCLAIR 550 +31 984
 Ivy 525 +35 1015
 Mirage 550 +37 1068
 Grey Talon 550 +29 956
 Raven 550 +33 1012
 Bebop 650 +41 1224
 Lash 550 +42 1138
 Seven 550 +31 984
 Trapper 550 +45 1180
 Infernus 600 +33 1062
 Shiv 600 +35 1090
 Wrecker 550 +41 1124
 Calico 550 +41 1124
 Haze 500 +27 878
 Paradox 550 +40 1110
 Lady Geist 650 +41 1224
 Wraith 550 +31 984
 Yamato 500 +31 934

   

Item Cost +X% Bullet Lifesteal

Use this for the debug console when testing the ItemsByStat page: =p.tablefy( mw.getCurrentFrame():newChild{ title="Module:ItemsByStat", args={"BulletLifestealPercent", "+X% Bullet Lifesteal", "%"} })