From ad9ca0b260f44499fffe3a63503034dbf6ed8b41 Mon Sep 17 00:00:00 2001 From: Dazed Date: Tue, 9 May 2023 12:57:51 -0500 Subject: [PATCH] feat: Add equipment types for system --- src/rpgmakermvmz.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/rpgmakermvmz.py b/src/rpgmakermvmz.py index 4814c5b..4bb5135 100644 --- a/src/rpgmakermvmz.py +++ b/src/rpgmakermvmz.py @@ -874,18 +874,25 @@ def searchSystem(data, pbar): # Armor Types for i in range(len(data['armorTypes'])): - response = translateGPT(data['armorTypes'][i], 'Reply with only the english translate armor type', False) + response = translateGPT(data['armorTypes'][i], 'Reply with only the english translated armor type', False) tokens += response[1] data['armorTypes'][i] = response[0].strip('.\"') pbar.update(1) # Skill Types for i in range(len(data['skillTypes'])): - response = translateGPT(data['skillTypes'][i], 'Reply with only the english translate armor type', False) + response = translateGPT(data['skillTypes'][i], 'Reply with only the english translated skill type', False) tokens += response[1] data['skillTypes'][i] = response[0].strip('.\"') pbar.update(1) + # Equip Types + for i in range(len(data['equipTypes'])): + response = translateGPT(data['equipTypes'][i], 'Reply with only the english translated equipment type. No disclaimers.', False) + tokens += response[1] + data['equipTypes'][i] = response[0].strip('.\"') + pbar.update(1) + # Messages messages = (data['terms']['messages']) for key, value in messages.items():