mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-09-28 20:54:46 +00:00
Added global bank balance stat.
This commit is contained in:
parent
b718484d7d
commit
2fb2f3660f
@ -195,7 +195,8 @@ class A2PackPartitions
|
||||
"Gold": "@S_GOLD",
|
||||
"Time": "@S_TIME",
|
||||
"XP": "@S_XP",
|
||||
"SP": "@S_SP"
|
||||
"SP": "@S_SP",
|
||||
"Bank bal": "@S_BANK_BAL"
|
||||
]
|
||||
|
||||
def predefStrings = stats + [
|
||||
|
1
Platform/Apple/virtual/.gitignore
vendored
1
Platform/Apple/virtual/.gitignore
vendored
@ -1 +1,2 @@
|
||||
*.txt
|
||||
scripts/
|
||||
|
@ -195,6 +195,7 @@ export byte[] S_USE = "Use"
|
||||
export byte[] S_HIS = "his"
|
||||
export byte[] S_HER = "her"
|
||||
export byte[] S_THEIR = "their"
|
||||
export byte[] S_BANK_BAL = "Bank bal"
|
||||
|
||||
word lastTick = 0
|
||||
|
||||
@ -3507,6 +3508,7 @@ export def getStat(player, statName)#1
|
||||
is streqi(statName, @S_XP); return player=>w_curXP
|
||||
is streqi(statName, @S_SP); return player->b_skillPoints
|
||||
is streqi(statName, @S_PACK_SIZE); return player->b_packSize
|
||||
is streqi(statName, @S_BANK_BAL); return global=>w_bankBal
|
||||
wend
|
||||
pSkill = scanForNamedObj(player=>p_skills, statName)
|
||||
if pSkill; return pSkill=>w_modValue; fin
|
||||
@ -3557,6 +3559,7 @@ export def setStat(player, statName, val)#0
|
||||
is streqi(statName, @S_XP); addXP(player, val - player=>w_curXP); needShowParty = TRUE; break
|
||||
is streqi(statName, @S_SP); player->b_skillPoints = clampByte(max(0, val)); needShowParty = TRUE; break
|
||||
is streqi(statName, @S_PACK_SIZE); player->b_packSize = clampByte(max(player->b_packSize, val)); break
|
||||
is streqi(statName, @S_BANK_BAL); global=>w_bankBal = val; break
|
||||
otherwise
|
||||
pSkill = scanForNamedObj(player=>p_skills, statName)
|
||||
if pSkill
|
||||
|
@ -49,6 +49,8 @@ struc TGlobal
|
||||
|
||||
// move mode (1=normal, 2=fast, 4=classic)
|
||||
byte b_moveMode
|
||||
|
||||
word w_bankBal
|
||||
end
|
||||
|
||||
const PLAYER_FLAG_NPC = $01
|
||||
|
Loading…
Reference in New Issue
Block a user