Skip to content

Commit

Permalink
Nevermind it's min and max.
Browse files Browse the repository at this point in the history
  • Loading branch information
Damnae committed Feb 4, 2024
1 parent 725f50f commit 8e5c559
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/common/hashstore.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { reactive, } from 'vue'
import { getHash } from './translate'

//console.log(`"${getHash('BPHealingSkill')}": "BPHealingSkill",`)
console.log(`"${getHash('min')}": "min",`)
console.log(`"${getHash('max')}": "max",`)

const defaultHashes:{[key:number]:string} =
{
Expand All @@ -10,6 +11,10 @@ const defaultHashes:{[key:number]:string} =
"-514975797": "ceil",
"1554761690": "round",
"-1226284721": "int",
"-1355705909": "clamp",
"1502598836": "pow",
"339799074": "min",
"696029444": "max",
// AI Tags
"-2126289379": "TotalPowerWeight",
"-1599294167": "NoNeedCharge",
Expand Down
2 changes: 1 addition & 1 deletion src/sources/gamecore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export function evaluateDynamicExpression(expression?:DynamicExpression|number,
var param0 = stack.pop()
var param1 = stack.pop()
var param2 = stack.pop()
stack.push(`clamp(${param2}, ${param1}, ${param0})`)
stack.push(`${param2}(${param1}, ${param0})`)
break;
default:
stack.push(`UnknownCall${call}(${stack.join(', ')})`)
Expand Down

0 comments on commit 8e5c559

Please sign in to comment.