示例#1
0
    def getAbilityNames(self, japanese = False):
        abilities = []

        for i in xrange(32):
            offset = self.abilitiesOffset + i * self.maxStringSize
            abilities.append(ff7.decodeKernelText(self.data[offset:offset + self.maxStringSize], japanese))

        return abilities
示例#2
0
    def getEnemyNames(self, japanese = False):
        enemies = []

        for i in xrange(3):
            offset = self.enemyDataOffset + i * self.enemyDataSize
            enemies.append(ff7.decodeKernelText(self.data[offset:offset + self.maxStringSize], japanese))

        return enemies
示例#3
0
    def getAbilityNames(self, japanese=False):
        abilities = []

        for i in xrange(32):
            offset = self.abilitiesOffset + i * self.maxStringSize
            abilities.append(
                ff7.decodeKernelText(
                    self.data[offset:offset + self.maxStringSize], japanese))

        return abilities
示例#4
0
    def getEnemyNames(self, japanese=False):
        enemies = []

        for i in xrange(3):
            offset = self.enemyDataOffset + i * self.enemyDataSize
            enemies.append(
                ff7.decodeKernelText(
                    self.data[offset:offset + self.maxStringSize], japanese))

        return enemies
示例#5
0
    def getStrings(self, japanese = False):
        strings = []

        for scriptsOfEnemy in self.enemyScripts:
            if scriptsOfEnemy is None:
                continue

            for script in scriptsOfEnemy:
                if script is None:
                    continue

                for instr in script:
                    if instr.op == Op.MES:
                        rawString = str(instr.code[1:])
                        strings.append(ff7.decodeKernelText(rawString, japanese))

        return strings
示例#6
0
    def getStrings(self, japanese=False):
        strings = []

        for scriptsOfEnemy in self.enemyScripts:
            if scriptsOfEnemy is None:
                continue

            for script in scriptsOfEnemy:
                if script is None:
                    continue

                for instr in script:
                    if instr.op == Op.MES:
                        rawString = str(instr.code[1:])
                        strings.append(
                            ff7.decodeKernelText(rawString, japanese))

        return strings