def test(args):
    jobname, ulevel, runtime = args

    template = get_template_generator('high_standard')().get_template(ulevel)
    parser = IndividualDPMGenerator(jobname, template)
    parser.set_runtime(runtime * 1000)
    dpm = parser.get_dpm(ulevel=ulevel)

    return jobname, dpm
示例#2
0
def test(args):
    jobname, ulevel, runtime, cdr = args
    start = time.time()
    print(f"{jobname} {ulevel} 계산중")

    parser = IndividualDPMGenerator(jobname)
    parser.set_runtime(runtime * 1000)
    dpm = parser.get_dpm(spec_name=str(ulevel), ulevel=ulevel, cdr=cdr)

    end = time.time()
    print(f"{jobname} {ulevel} 계산완료, {end - start:.3f}초")
    return jobname, ulevel, dpm
示例#3
0
def test(args):
    preset, ulevel, cdr, runtime = args
    id, jobname, description, options, alt = preset

    template = get_template_generator("high_standard")().get_template(ulevel)
    parser = IndividualDPMGenerator(jobname, template)
    parser.set_runtime(runtime * 1000)
    result = parser.get_detailed_dpm(ulevel=ulevel, cdr=cdr, options=options)
    dpm = result["dpm"]
    loss = result["loss"]

    return jobname, cdr, description, dpm, loss, alt
示例#4
0
def dpm(args):
    parser = IndividualDPMGenerator(args.job)
    parser.set_runtime(args.time * 1000)
    try:
        dpm = parser.get_dpm(
            spec_name=str(args.ulevel),
            ulevel=args.ulevel,
            cdr=args.cdr,
            printFlag=args.log,
            statistics=args.stat or args.log,
        )
    finally:
        print(args.job, f"{dpm:,.3f}")
示例#5
0
def test(args):
    jobname, ulevel, runtime, cdr = args
    start = time.time()
    print(f"{jobname} {ulevel} 계산중")

    template = get_template_generator("high_standard")().get_template(ulevel)
    parser = IndividualDPMGenerator(jobname, template)
    parser.set_runtime(runtime * 1000)
    dpm = parser.get_dpm(ulevel=ulevel, cdr=cdr, weaponstat=[4, 9])

    end = time.time()
    print(f"{jobname} {ulevel} 계산완료, {end - start:.3f}초")
    return jobname, ulevel, dpm
示例#6
0
def test(args):
    preset, ulevel, cdr, runtime = args
    id, jobname, description, options, alt = preset
    parser = IndividualDPMGenerator(jobname)
    parser.set_runtime(runtime * 1000)
    result = parser.get_detailed_dpm(spec_name=str(ulevel),
                                     ulevel=ulevel,
                                     cdr=cdr,
                                     options=options)
    dpm = result["dpm"]
    loss = result["loss"]

    return jobname, cdr, description, dpm, loss, alt
示例#7
0
def dpm(args):
    template = get_template_generator("high_standard")().get_template(
        args.ulevel)
    parser = IndividualDPMGenerator(args.job, template)
    parser.set_runtime(args.time * 1000)
    try:
        dpm = parser.get_dpm(
            ulevel=args.ulevel,
            cdr=args.cdr,
            level=args.level,
            weaponstat=[4, 9],
            printFlag=args.log,
            statistics=args.stat or args.log,
        )
    finally:
        print(args.job, dpm)
示例#8
0
def dpm(args):
    if args.job == 'all':
        jobs = jobMap.keys()
    else:
        jobs = [args.job]

    for jobname in jobs:
        parser = IndividualDPMGenerator(jobname,
                                        template.getU6000CharacterTemplate)
        try:
            dpm = parser.get_dpm(ulevel=args.ulevel,
                                 weaponstat=weaponstat,
                                 level=args.level,
                                 printFlag=args.log)
        except:
            raise
        finally:
            print(jobname, dpm)
示例#9
0
def dpm(args):
    if args.job == 'all':
        jobs = jobMap.keys()
    else:
        jobs = [args.job]

    for jobname in jobs:
        template = get_template_generator('high_standard')().get_template(args.ulevel)
        parser = IndividualDPMGenerator(jobname, template)
        try:
            dpm = parser.get_dpm(ulevel = args.ulevel,
            level = args.level,
            weaponstat = weaponstat,
            printFlag=args.log)
        except:
            raise
        finally:
            print(jobname, dpm)
示例#10
0
import sys
import dpmModule
from dpmModule.util.dpmgenerator import IndividualDPMGenerator
import dpmModule.character.characterTemplateHigh as template
import dpmModule.jobs as maplejobs
'''
full_test.py
전체 테스트를 위한 스크립트입니다.

등록된 모든 직업의 표준 DPM 수치를 계산하여 파일로 출력합니다.
'''

sys.stdout = open('output.txt', 'w')

for value in maplejobs.jobList.values():
    gen = IndividualDPMGenerator(value, template.getU6000CharacterTemplate)
    print(value, gen.get_dpm(ulevel=6000))
示例#11
0
import sys
import dpmModule
from dpmModule.util.dpmgenerator import IndividualDPMGenerator
import dpmModule.character.characterTemplateHigh as template
import dpmModule.jobs as maplejobs

'''
full_test.py
전체 테스트를 위한 스크립트입니다.

등록된 모든 직업의 모든 스펙 기준 DPM 수치를 계산하여 파일로 출력합니다.
'''

charTemplate = {4000: template.getU4000CharacterTemplate, 5000: template.getU5000CharacterTemplate, 6000: template.getU6000CharacterTemplate, 7000: template.getU7000CharacterTemplate, 8000: template.getU8000CharacterTemplate, 8500: template.getU8500CharacterTemplate}

sys.stdout = open('output.txt','w', encoding= 'utf-8')

for value in maplejobs.jobList.values():
    union_level_list = [4000, 5000, 6000, 7000, 8000, 8500]
    print(value, end = '\t')
    for union_level in union_level_list:
        gen = IndividualDPMGenerator(value, charTemplate[union_level])
        print(gen.get_dpm(ulevel = union_level), end = '\t')
    print("")
示例#12
0
# from dpmModule.util.dpmgenerator import IndividualDPMGenerator

# job_name = '제로'
# gen = IndividualDPMGenerator(job_name)
# print(job_name, gen.get_dpm(spec_name="8000", ulevel=8000))

# import dpmModule.jobs.nightlord as nightlord
# from dpmModule.character.characterTemplate import TemplateGenerator

# character = TemplateGenerator('8500').get_template(8500)
# gen = nightlord.JobGenerator()
# v_builder = core.NJBStyleVBuilder(skill_core_level=25, each_enhanced_amount=17)
# graph = gen.package(character, v_builder)

#자세한 사용 방법은 dpmModule의 readme를 참조하십시오.

import dpmModule
from dpmModule.util.dpmgenerator import IndividualDPMGenerator
import dpmModule.character.characterTemplateHigh as template
gen = IndividualDPMGenerator('나이트로드', template.getU6000CharacterTemplate)
print(gen.get_dpm(ulevel=6000))
示例#13
0
from dpmModule.util.dpmgenerator import IndividualDPMGenerator

job_name = '제로'
gen = IndividualDPMGenerator(job_name)
print(job_name, gen.get_dpm(spec_name="8000", ulevel=8000))