Moving these into a branch in the main repo
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
function CalcExp(base, mod, level)
|
||||
return math.floor(base * mod ^ level)
|
||||
end
|
||||
|
||||
function CalcSumExp(base, mod, level)
|
||||
local ret = CalcExp(base, mod, level)
|
||||
if (level > 1) then
|
||||
return ret + CalcSumExp(base, mod, level-1)
|
||||
else
|
||||
return ret
|
||||
end
|
||||
end
|
||||
|
||||
function CalcExpTables(base, mod, levelCap)
|
||||
local exp = {}
|
||||
local sum = {}
|
||||
for i = 1, levelCap do
|
||||
exp[i] = CalcExp(base, mod, i)
|
||||
sum[i] = CalcSumExp(base, mod, i)
|
||||
end
|
||||
return exp, sum
|
||||
end
|
||||
|
||||
--the variables
|
||||
base = 1000
|
||||
mod = 1.14
|
||||
levelCap = 20
|
||||
|
||||
--calc the tables
|
||||
exp, sum = CalcExpTables(base, mod, levelCap)
|
||||
|
||||
--output the data
|
||||
io.write("Level\t\tExp\t\tTotal\t\tLaps\n")
|
||||
for i = 1, 60 do io.write("-") end
|
||||
io.write("\n")
|
||||
|
||||
for i = 1, levelCap do
|
||||
if i % 5 == 0 then
|
||||
sep = "\t---\t"
|
||||
else
|
||||
sep = "\t\t"
|
||||
end
|
||||
io.write(i,
|
||||
sep, exp[i],
|
||||
sep, sum[i],
|
||||
sep, math.floor(sum[i] / sum[1] * 10) / 10, --rounded
|
||||
-- sep, sum[i] / sum[1], --real
|
||||
"\n")
|
||||
end
|
||||
@@ -0,0 +1,255 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<java version="1.7.0_21" class="java.beans.XMLDecoder">
|
||||
<object class="com.horstmann.violet.ClassDiagramGraph">
|
||||
<void method="addNode">
|
||||
<object class="com.horstmann.violet.ClassNode" id="ClassNode0">
|
||||
<void property="attributes">
|
||||
<void property="text">
|
||||
<string>room list
|
||||
client list --?</string>
|
||||
</void>
|
||||
</void>
|
||||
<void property="methods">
|
||||
<void property="text">
|
||||
<string>Constructor()
|
||||
Destructor()
|
||||
Init()
|
||||
Loop()
|
||||
Quit()
|
||||
SetRunning(bool)
|
||||
GetRunning()
|
||||
OpenRoom(args)
|
||||
CloseRoom(roomHandle)</string>
|
||||
</void>
|
||||
</void>
|
||||
<void property="name">
|
||||
<void property="text">
|
||||
<string>Server Application</string>
|
||||
</void>
|
||||
</void>
|
||||
</object>
|
||||
<object class="java.awt.geom.Point2D$Double" id="Point2D$Double0">
|
||||
<void class="java.awt.geom.Point2D$Double" method="getField">
|
||||
<string>x</string>
|
||||
<void method="set">
|
||||
<object idref="Point2D$Double0"/>
|
||||
<double>146.0</double>
|
||||
</void>
|
||||
</void>
|
||||
<void class="java.awt.geom.Point2D$Double" method="getField">
|
||||
<string>y</string>
|
||||
<void method="set">
|
||||
<object idref="Point2D$Double0"/>
|
||||
<double>52.0</double>
|
||||
</void>
|
||||
</void>
|
||||
<void method="setLocation">
|
||||
<double>146.0</double>
|
||||
<double>52.0</double>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="addNode">
|
||||
<object class="com.horstmann.violet.ClassNode" id="ClassNode1">
|
||||
<void property="attributes">
|
||||
<void property="text">
|
||||
<string>arguments
|
||||
mailBox
|
||||
</string>
|
||||
</void>
|
||||
</void>
|
||||
<void property="methods">
|
||||
<void property="text">
|
||||
<string>Constructor(args)
|
||||
Destructor()
|
||||
Init()
|
||||
Loop()
|
||||
Quit()
|
||||
SetRunning(bool)
|
||||
GetRunning()
|
||||
GetMailBox()
|
||||
</string>
|
||||
</void>
|
||||
</void>
|
||||
<void property="name">
|
||||
<void property="text">
|
||||
<string>Base Room</string>
|
||||
</void>
|
||||
</void>
|
||||
</object>
|
||||
<object class="java.awt.geom.Point2D$Double" id="Point2D$Double1">
|
||||
<void class="java.awt.geom.Point2D$Double" method="getField">
|
||||
<string>x</string>
|
||||
<void method="set">
|
||||
<object idref="Point2D$Double1"/>
|
||||
<double>343.0</double>
|
||||
</void>
|
||||
</void>
|
||||
<void class="java.awt.geom.Point2D$Double" method="getField">
|
||||
<string>y</string>
|
||||
<void method="set">
|
||||
<object idref="Point2D$Double1"/>
|
||||
<double>49.0</double>
|
||||
</void>
|
||||
</void>
|
||||
<void method="setLocation">
|
||||
<double>343.0</double>
|
||||
<double>49.0</double>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="addNode">
|
||||
<object class="com.horstmann.violet.ClassNode" id="ClassNode2">
|
||||
<void property="attributes">
|
||||
<void property="text">
|
||||
<string>input queue
|
||||
output queue
|
||||
input lock
|
||||
output lock</string>
|
||||
</void>
|
||||
</void>
|
||||
<void property="methods">
|
||||
<void property="text">
|
||||
<string>PushIn(arg)
|
||||
PeekIn()
|
||||
PopIn()
|
||||
PushOut(arg)
|
||||
PeekOut()
|
||||
PopOut()</string>
|
||||
</void>
|
||||
</void>
|
||||
<void property="name">
|
||||
<void property="text">
|
||||
<string>Mail Box</string>
|
||||
</void>
|
||||
</void>
|
||||
</object>
|
||||
<object class="java.awt.geom.Point2D$Double" id="Point2D$Double2">
|
||||
<void class="java.awt.geom.Point2D$Double" method="getField">
|
||||
<string>x</string>
|
||||
<void method="set">
|
||||
<object idref="Point2D$Double2"/>
|
||||
<double>489.0</double>
|
||||
</void>
|
||||
</void>
|
||||
<void class="java.awt.geom.Point2D$Double" method="getField">
|
||||
<string>y</string>
|
||||
<void method="set">
|
||||
<object idref="Point2D$Double2"/>
|
||||
<double>50.0</double>
|
||||
</void>
|
||||
</void>
|
||||
<void method="setLocation">
|
||||
<double>489.0</double>
|
||||
<double>50.0</double>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="addNode">
|
||||
<object class="com.horstmann.violet.ClassNode" id="ClassNode3">
|
||||
<void property="name">
|
||||
<void property="text">
|
||||
<string>Generic Room</string>
|
||||
</void>
|
||||
</void>
|
||||
</object>
|
||||
<object class="java.awt.geom.Point2D$Double" id="Point2D$Double3">
|
||||
<void class="java.awt.geom.Point2D$Double" method="getField">
|
||||
<string>x</string>
|
||||
<void method="set">
|
||||
<object idref="Point2D$Double3"/>
|
||||
<double>284.0</double>
|
||||
</void>
|
||||
</void>
|
||||
<void class="java.awt.geom.Point2D$Double" method="getField">
|
||||
<string>y</string>
|
||||
<void method="set">
|
||||
<object idref="Point2D$Double3"/>
|
||||
<double>299.0</double>
|
||||
</void>
|
||||
</void>
|
||||
<void method="setLocation">
|
||||
<double>284.0</double>
|
||||
<double>299.0</double>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="addNode">
|
||||
<object class="com.horstmann.violet.ClassNode" id="ClassNode4">
|
||||
<void property="name">
|
||||
<void property="text">
|
||||
<string>Combat Room</string>
|
||||
</void>
|
||||
</void>
|
||||
</object>
|
||||
<object class="java.awt.geom.Point2D$Double" id="Point2D$Double4">
|
||||
<void class="java.awt.geom.Point2D$Double" method="getField">
|
||||
<string>x</string>
|
||||
<void method="set">
|
||||
<object idref="Point2D$Double4"/>
|
||||
<double>419.0</double>
|
||||
</void>
|
||||
</void>
|
||||
<void class="java.awt.geom.Point2D$Double" method="getField">
|
||||
<string>y</string>
|
||||
<void method="set">
|
||||
<object idref="Point2D$Double4"/>
|
||||
<double>300.0</double>
|
||||
</void>
|
||||
</void>
|
||||
<void method="setLocation">
|
||||
<double>419.0</double>
|
||||
<double>300.0</double>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="connect">
|
||||
<object class="com.horstmann.violet.ClassRelationshipEdge">
|
||||
<void property="bentStyle">
|
||||
<object class="com.horstmann.violet.BentStyle" field="HVH"/>
|
||||
</void>
|
||||
<void property="startArrowHead">
|
||||
<object class="com.horstmann.violet.ArrowHead" field="DIAMOND"/>
|
||||
</void>
|
||||
</object>
|
||||
<object idref="ClassNode0"/>
|
||||
<object idref="ClassNode1"/>
|
||||
</void>
|
||||
<void method="connect">
|
||||
<object class="com.horstmann.violet.ClassRelationshipEdge">
|
||||
<void property="bentStyle">
|
||||
<object class="com.horstmann.violet.BentStyle" field="HVH"/>
|
||||
</void>
|
||||
<void property="startArrowHead">
|
||||
<object class="com.horstmann.violet.ArrowHead" field="DIAMOND"/>
|
||||
</void>
|
||||
</object>
|
||||
<object idref="ClassNode1"/>
|
||||
<object idref="ClassNode2"/>
|
||||
</void>
|
||||
<void method="connect">
|
||||
<object class="com.horstmann.violet.ClassRelationshipEdge">
|
||||
<void property="bentStyle">
|
||||
<object class="com.horstmann.violet.BentStyle" field="VHV"/>
|
||||
</void>
|
||||
<void property="endArrowHead">
|
||||
<object class="com.horstmann.violet.ArrowHead" field="TRIANGLE"/>
|
||||
</void>
|
||||
</object>
|
||||
<object idref="ClassNode3"/>
|
||||
<object idref="ClassNode1"/>
|
||||
</void>
|
||||
<void method="connect">
|
||||
<object class="com.horstmann.violet.ClassRelationshipEdge">
|
||||
<void property="bentStyle">
|
||||
<object class="com.horstmann.violet.BentStyle" field="VHV"/>
|
||||
</void>
|
||||
<void property="endArrowHead">
|
||||
<object class="com.horstmann.violet.ArrowHead" field="TRIANGLE"/>
|
||||
</void>
|
||||
</object>
|
||||
<object idref="ClassNode4"/>
|
||||
<object idref="ClassNode1"/>
|
||||
</void>
|
||||
</object>
|
||||
</java>
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user