Difference between revisions of "Module:Sandbox/Arcangelus/doc"

From RimWorld Wiki
Jump to navigation Jump to search
m
m
Line 6: Line 6:
 
Hello function:
 
Hello function:
 
{{#invoke:Sandbox/Arcangelus|hello}}-->
 
{{#invoke:Sandbox/Arcangelus|hello}}-->
 +
expr only uses 1 Preprocessor visited node count vs
 
-----
 
-----
Calculo 1 ['''SkillValue''']: Lua slower (by a lot)
+
Calculo 1 ['''SkillValue''']: Lua(5)
 
  Module: {{#invoke:Sandbox/Arcangelus|SkillValue|2|3|4}}
 
  Module: {{#invoke:Sandbox/Arcangelus|SkillValue|2|3|4}}
 
  2+3*4 = {{#expr: 2 + 3*4}}
 
  2+3*4 = {{#expr: 2 + 3*4}}
 
-----
 
-----
Calculo 2 ['''twomult''']: Lua slower (by a lot)
+
Calculo 2 ['''twomult''']: Lua (4)
 
  Module: {{#invoke:Sandbox/Arcangelus|twomult|2|3}}
 
  Module: {{#invoke:Sandbox/Arcangelus|twomult|2|3}}
 
  2*3 = {{#expr: 2 * 3}}
 
  2*3 = {{#expr: 2 * 3}}
 
-----
 
-----
Calculo 3 ['''sum''']: Lua slower (by a lot)
+
Calculo 3 ['''sum''']: Lua (7)
 
  Module: {{#invoke:Sandbox/Arcangelus|sum|1|2|3|4|5}}
 
  Module: {{#invoke:Sandbox/Arcangelus|sum|1|2|3|4|5}}
 
  1+2++3+4+5 = {{#expr: 1+2++3+4+5}}
 
  1+2++3+4+5 = {{#expr: 1+2++3+4+5}}
 
-----
 
-----
Calculo 4 ['''potencia''']
+
Calculo 4 ['''potencia'''] Lua(4) vs exp(1)
 
  Module: {{#invoke:Sandbox/Arcangelus|potencia|10|5}}
 
  Module: {{#invoke:Sandbox/Arcangelus|potencia|10|5}}
 
  10^5 = {{#expr: 10^5}}
 
  10^5 = {{#expr: 10^5}}
 +
 +
Module: {{#invoke:Sandbox/Arcangelus|_sum2}}
 +
 +
-----
 +
function p._TableRow(skillBase, skillBonus, statMin, statMax, capImportance, capLimit, resultCols, LV, Ln)

Revision as of 02:40, 11 August 2024

Welcome to the RimWorld Wiki sandbox!
This sandbox is where you can experiment and practice working on a wiki page. This page will usually have little or no content. Feel free to add content or to make changes and save them to see the results.

To learn about editing and formatting start here: Help:Contents. Just start with the basics... enter some text, and learn the other pieces as you go.

Your content contributions are welcome and important. The wiki is a collaborative effort and others can help with formatting and other improvements.]

Best wishes!

Description

This is a doc attached to my sandbox. I'll use it to see the effects of my changes W/o messing something important expr only uses 1 Preprocessor visited node count vs


Calculo 1 [SkillValue]: Lua(5)

Module: Script error: The function "SkillValue" does not exist.
2+3*4 = 14

Calculo 2 [twomult]: Lua (4)

Module: Script error: The function "twomult" does not exist.
2*3 = 6

Calculo 3 [sum]: Lua (7)

Module: Script error: The function "sum" does not exist.
1+2++3+4+5 = 15

Calculo 4 [potencia] Lua(4) vs exp(1)

Module: Script error: The function "potencia" does not exist.
10^5 = 100000
Module: Script error: The function "_sum2" does not exist.

function p._TableRow(skillBase, skillBonus, statMin, statMax, capImportance, capLimit, resultCols, LV, Ln)