mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-13 03:13:26 -04:00
Updated Cloning Terminal so fee is level based
This commit is contained in:
@@ -11,11 +11,18 @@ def handleSelection(core, owner, target, option):
|
||||
|
||||
if option == 21 and target:
|
||||
# REALLY Dirty hack until this can be resolved SWG way !!
|
||||
str = "Will you pay the %DI credits to clone yourself here?"
|
||||
stra = "Will you pay the %DI credits to clone yourself here?"
|
||||
level = int(owner.getLevel())
|
||||
|
||||
if level <= 10:
|
||||
cloningFee = 100
|
||||
elif level >= 11:
|
||||
cloningFee = (((owner.getLevel() + 17) * owner.getLevel())/2)
|
||||
elif level == 90:
|
||||
cloningFee = 5000
|
||||
|
||||
suiSvc = core.suiService
|
||||
suiWindow = suiSvc.createMessageBox(MessageBoxType.MESSAGE_BOX_OK_CANCEL, '@base_player:clone_confirm_title', str.replace ("%DI" , "5000"), owner, target, 15)
|
||||
suiWindow = suiSvc.createMessageBox(MessageBoxType.MESSAGE_BOX_OK_CANCEL, '@base_player:clone_confirm_title', stra.replace ("%DI" , str(cloningFee)), owner, target, 15)
|
||||
returnParams = Vector()
|
||||
returnParams.add('btnOk:Text')
|
||||
returnParams.add('btnCancel:Text')
|
||||
|
||||
Reference in New Issue
Block a user