Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
hearmeneigh committed Jan 30, 2024
1 parent f073fe7 commit 51640d7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 1.26.2
* Fixed a few cases where high-quality portraits were not displayed

## 1.26.1
* Added [high-quality portrait guide](https://github.com/hearmeneigh/fchat-rising/wiki/High%E2%80%90Quality-Portraits)
* Added high-quality portrait check to Profile Helper
Expand Down
4 changes: 3 additions & 1 deletion fchat/characters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { methods } from '../site/character_page/data_store';
import {decodeHTML} from './common';
import {Character as Interfaces, Connection} from './interfaces';
import { Character as CharacterProfile } from '../site/character_page/interfaces';
import Vue from 'vue';

class Character implements Interfaces.Character {
gender: Interfaces.Gender = 'None';
Expand Down Expand Up @@ -68,7 +69,8 @@ class State implements Interfaces.State {
setOverride(name: string, type: 'status', value: Interfaces.Status | undefined): void;
setOverride(name: string, type: keyof CharacterOverrides, value: any): void {
const char = this.get(name);
char.overrides[type] = value;

Vue.set(char.overrides, type, value);
}

async resolveOwnProfile(): Promise<void> {
Expand Down
6 changes: 4 additions & 2 deletions learn/yiffbot.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import _ from 'lodash';
import { EventBus } from '../chat/preview/event-bus';
import { Message } from '../chat/common';
import core from '../chat/core';
import Vue from 'vue';

export function initYiffbot4000Integration() {
EventBus.$on('private-message', ({ message }: { message: Message }) => {
Expand All @@ -14,8 +16,8 @@ export function initYiffbot4000Integration() {
if (manifest.type === 'FChatRisingBotManifest' && manifest.version >= 1) {
const char = core.characters.get('YiffBot 4000');

char.overrides.avatarUrl = manifest.avatarUrl;
char.overrides.gender = manifest.gender;
Vue.set(char.overrides, 'avatarUrl', manifest.avatarUrl);
Vue.set(char.overrides, 'gender', _.get(manifest, 'assistant.gender'));
}
} catch (err) {
console.error('FChatRisingBotManifest.error', err);
Expand Down

0 comments on commit 51640d7

Please sign in to comment.