| 139 | } |
| 140 | |
| 141 | private getExportFileName() { |
| 142 | const name = this.props.npc.description.name.split(" ")[0]; |
| 143 | const gender = this.props.npc.description.gender; |
| 144 | const race = this.props.npc.description.race.split(" ").join("_"); |
| 145 | const occupation = this.props.npc.description.occupation.split(" ").join("_"); |
| 146 | |
| 147 | const filename = name + "_" + gender + "_" + race + "_" + occupation; |
| 148 | |
| 149 | return filename; |
| 150 | } |
| 151 | |
| 152 | private downloadTxtFile: React.MouseEventHandler<HTMLButtonElement> = (ev) => { |
| 153 | ev.stopPropagation(); |