Paste #45729: Edit of P#45728 - Edit of P#45727 - Untitled Paste

Date: 2017/11/25 23:12:41 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13


xpSort:
  type: procedure
  definitions: one|two
  debug: true
  script:
    - define oneRatio <def[one].flag[173.xp].div[<def[one].flag[173.deaths]||0>]>
    - if <def[oneRatio]> < <def[twoRatio]> {
      - determine 1
      } else if <def[oneRatio]> > <def[twoRatio]> {
      - determine -1
      } else {
      - determine 0
      }