199 lines
		
	
	
		
			7.2 KiB
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			199 lines
		
	
	
		
			7.2 KiB
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env python3
 | 
						|
 | 
						|
episodes = ['ep1', 'ep2', 'ep4']
 | 
						|
difficulties = ['normal', 'hard', 'veryhard', 'ultimate']
 | 
						|
sectionids = ['viridia', 'greenill', 'skyly', 'bluefull', 'purplenum', 'pinkal', 'redria', 'oran', 'yellowboze', 'whitill']
 | 
						|
 | 
						|
with open('drops','r') as infile:
 | 
						|
    drops = infile.readlines()
 | 
						|
 | 
						|
ep1drops = list(filter(lambda d: d.split(',')[0] == 'ep1', drops))
 | 
						|
ep2drops = list(filter(lambda d: d.split(',')[0] == 'ep2', drops))
 | 
						|
ep4drops = list(filter(lambda d: d.split(',')[0] == 'ep4', drops))
 | 
						|
 | 
						|
ep1monsters = list(set(line.split(',')[3] for line in ep1drops))
 | 
						|
ep2monsters = list(set(line.split(',')[3] for line in ep2drops))
 | 
						|
ep4monsters = list(set(line.split(',')[3] for line in ep4drops))
 | 
						|
 | 
						|
ep1monsters.sort()
 | 
						|
ep2monsters.sort()
 | 
						|
ep4monsters.sort()
 | 
						|
 | 
						|
ep1normal = list(filter(lambda d: d.split(',')[1] == 'normal', ep1drops))
 | 
						|
ep1hard = list(filter(lambda d: d.split(',')[1] == 'hard', ep1drops))
 | 
						|
ep1veryhard = list(filter(lambda d: d.split(',')[1] == 'veryhard', ep1drops))
 | 
						|
ep1ultimate = list(filter(lambda d: d.split(',')[1] == 'ultimate', ep1drops))
 | 
						|
 | 
						|
print('ep1 normal drops')
 | 
						|
for monster in ep1monsters:
 | 
						|
    monster_drops = list(filter(lambda d: d.split(',')[3] == monster, ep1normal)) # all drops for specific monster (list of strings)
 | 
						|
    print('{},'.format(monster), sep='', end='')
 | 
						|
    for sectionid in sectionids:
 | 
						|
        for md in monster_drops:
 | 
						|
            if sectionid in md:
 | 
						|
                print('{}'.format(md.split(',')[4]),sep='', end='')
 | 
						|
        print(',', sep='', end='')
 | 
						|
    print()
 | 
						|
 | 
						|
print('\n\n')
 | 
						|
 | 
						|
print('ep1 hard drops')
 | 
						|
for monster in ep1monsters:
 | 
						|
    monster_drops = list(filter(lambda d: d.split(',')[3] == monster, ep1hard)) # all drops for specific monster (list of strings)
 | 
						|
    print('{},'.format(monster), sep='', end='')
 | 
						|
    for sectionid in sectionids:
 | 
						|
        for md in monster_drops:
 | 
						|
            if sectionid in md:
 | 
						|
                print('{}'.format(md.split(',')[4]),sep='', end='')
 | 
						|
        print(',', sep='', end='')
 | 
						|
    print()
 | 
						|
 | 
						|
print('\n\n')
 | 
						|
 | 
						|
print('ep1 veryhard drops')
 | 
						|
for monster in ep1monsters:
 | 
						|
    monster_drops = list(filter(lambda d: d.split(',')[3] == monster, ep1veryhard)) # all drops for specific monster (list of strings)
 | 
						|
    print('{},'.format(monster), sep='', end='')
 | 
						|
    for sectionid in sectionids:
 | 
						|
        for md in monster_drops:
 | 
						|
            if sectionid in md:
 | 
						|
                print('{}'.format(md.split(',')[4]),sep='', end='')
 | 
						|
        print(',', sep='', end='')
 | 
						|
    print()
 | 
						|
 | 
						|
print('\n\n')
 | 
						|
 | 
						|
print('ep1 ultimate drops')
 | 
						|
for monster in ep1monsters:
 | 
						|
    monster_drops = list(filter(lambda d: d.split(',')[3] == monster, ep1ultimate)) # all drops for specific monster (list of strings)
 | 
						|
    print('{},'.format(monster), sep='', end='')
 | 
						|
    for sectionid in sectionids:
 | 
						|
        for md in monster_drops:
 | 
						|
            if sectionid in md:
 | 
						|
                print('{}'.format(md.split(',')[4]),sep='', end='')
 | 
						|
        print(',', sep='', end='')
 | 
						|
    print()
 | 
						|
 | 
						|
print('\n\n')
 | 
						|
 | 
						|
print('\n\n\n\n\n\n')
 | 
						|
 | 
						|
 | 
						|
# print drops per difficulty
 | 
						|
ep2normal = list(filter(lambda d: d.split(',')[1] == 'normal', ep2drops))
 | 
						|
ep2hard = list(filter(lambda d: d.split(',')[1] == 'hard', ep2drops))
 | 
						|
ep2veryhard = list(filter(lambda d: d.split(',')[1] == 'veryhard', ep2drops))
 | 
						|
ep2ultimate = list(filter(lambda d: d.split(',')[1] == 'ultimate', ep2drops))
 | 
						|
 | 
						|
print('ep2 normal drops')
 | 
						|
for monster in ep2monsters:
 | 
						|
    monster_drops = list(filter(lambda d: d.split(',')[3] == monster, ep2normal)) # all drops for specific monster (list of strings)
 | 
						|
    print('{},'.format(monster), sep='', end='')
 | 
						|
    for sectionid in sectionids:
 | 
						|
        for md in monster_drops:
 | 
						|
            if sectionid in md:
 | 
						|
                print('{}'.format(md.split(',')[4]),sep='', end='')
 | 
						|
        print(',', sep='', end='')
 | 
						|
    print()
 | 
						|
 | 
						|
print('\n\n')
 | 
						|
 | 
						|
print('ep2 hard drops')
 | 
						|
for monster in ep2monsters:
 | 
						|
    monster_drops = list(filter(lambda d: d.split(',')[3] == monster, ep2hard)) # all drops for specific monster (list of strings)
 | 
						|
    print('{},'.format(monster), sep='', end='')
 | 
						|
    for sectionid in sectionids:
 | 
						|
        for md in monster_drops:
 | 
						|
            if sectionid in md:
 | 
						|
                print('{}'.format(md.split(',')[4]),sep='', end='')
 | 
						|
        print(',', sep='', end='')
 | 
						|
    print()
 | 
						|
 | 
						|
print('\n\n')
 | 
						|
 | 
						|
print('ep2 veryhard drops')
 | 
						|
for monster in ep2monsters:
 | 
						|
    monster_drops = list(filter(lambda d: d.split(',')[3] == monster, ep2veryhard)) # all drops for specific monster (list of strings)
 | 
						|
    print('{},'.format(monster), sep='', end='')
 | 
						|
    for sectionid in sectionids:
 | 
						|
        for md in monster_drops:
 | 
						|
            if sectionid in md:
 | 
						|
                print('{}'.format(md.split(',')[4]),sep='', end='')
 | 
						|
        print(',', sep='', end='')
 | 
						|
    print()
 | 
						|
 | 
						|
print('\n\n')
 | 
						|
 | 
						|
print('ep2 ultimate drops')
 | 
						|
for monster in ep2monsters:
 | 
						|
    monster_drops = list(filter(lambda d: d.split(',')[3] == monster, ep2ultimate)) # all drops for specific monster (list of strings)
 | 
						|
    print('{},'.format(monster), sep='', end='')
 | 
						|
    for sectionid in sectionids:
 | 
						|
        for md in monster_drops:
 | 
						|
            if sectionid in md:
 | 
						|
                print('{}'.format(md.split(',')[4]),sep='', end='')
 | 
						|
        print(',', sep='', end='')
 | 
						|
    print()
 | 
						|
 | 
						|
print('\n\n')
 | 
						|
 | 
						|
print('\n\n\n\n\n\n')
 | 
						|
 | 
						|
 | 
						|
# print drops per difficulty
 | 
						|
ep4normal = list(filter(lambda d: d.split(',')[1] == 'normal', ep4drops))
 | 
						|
ep4hard = list(filter(lambda d: d.split(',')[1] == 'hard', ep4drops))
 | 
						|
ep4veryhard = list(filter(lambda d: d.split(',')[1] == 'veryhard', ep4drops))
 | 
						|
ep4ultimate = list(filter(lambda d: d.split(',')[1] == 'ultimate', ep4drops))
 | 
						|
 | 
						|
print('ep4 normal drops')
 | 
						|
for monster in ep4monsters:
 | 
						|
    monster_drops = list(filter(lambda d: d.split(',')[3] == monster, ep4normal)) # all drops for specific monster (list of strings)
 | 
						|
    print('{},'.format(monster), sep='', end='')
 | 
						|
    for sectionid in sectionids:
 | 
						|
        for md in monster_drops:
 | 
						|
            if sectionid in md:
 | 
						|
                print('{}'.format(md.split(',')[4]),sep='', end='')
 | 
						|
        print(',', sep='', end='')
 | 
						|
    print()
 | 
						|
 | 
						|
print('\n\n')
 | 
						|
 | 
						|
print('ep4 hard drops')
 | 
						|
for monster in ep4monsters:
 | 
						|
    monster_drops = list(filter(lambda d: d.split(',')[3] == monster, ep4hard)) # all drops for specific monster (list of strings)
 | 
						|
    print('{},'.format(monster), sep='', end='')
 | 
						|
    for sectionid in sectionids:
 | 
						|
        for md in monster_drops:
 | 
						|
            if sectionid in md:
 | 
						|
                print('{}'.format(md.split(',')[4]),sep='', end='')
 | 
						|
        print(',', sep='', end='')
 | 
						|
    print()
 | 
						|
 | 
						|
print('\n\n')
 | 
						|
 | 
						|
print('ep4 veryhard drops')
 | 
						|
for monster in ep4monsters:
 | 
						|
    monster_drops = list(filter(lambda d: d.split(',')[3] == monster, ep4veryhard)) # all drops for specific monster (list of strings)
 | 
						|
    print('{},'.format(monster), sep='', end='')
 | 
						|
    for sectionid in sectionids:
 | 
						|
        for md in monster_drops:
 | 
						|
            if sectionid in md:
 | 
						|
                print('{}'.format(md.split(',')[4]),sep='', end='')
 | 
						|
        print(',', sep='', end='')
 | 
						|
    print()
 | 
						|
 | 
						|
print('\n\n')
 | 
						|
 | 
						|
print('ep4 ultimate drops')
 | 
						|
for monster in ep4monsters:
 | 
						|
    monster_drops = list(filter(lambda d: d.split(',')[3] == monster, ep4ultimate)) # all drops for specific monster (list of strings)
 | 
						|
    print('{},'.format(monster), sep='', end='')
 | 
						|
    for sectionid in sectionids:
 | 
						|
        for md in monster_drops:
 | 
						|
            if sectionid in md:
 | 
						|
                print('{}'.format(md.split(',')[4]),sep='', end='')
 | 
						|
        print(',', sep='', end='')
 | 
						|
    print()
 | 
						|
 |