Skip to content

Commit

Permalink
Added AVOID_FUNCTION_EXECUTE_SELF description
Browse files Browse the repository at this point in the history
  • Loading branch information
squaresmile committed Apr 27, 2024
1 parent 7402924 commit 34253d1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/api-descriptor/src/Buff/BuffTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export const buffTypeDescriptions = new Map<Buff.BuffType, string>([
[Buff.BuffType.BUFF_CONVERT, "Convert Buff"],
[Buff.BuffType.SHIFT_GUTS, "Guts on Break"],
[Buff.BuffType.SHIFT_GUTS_RATIO, "Guts on Break"],
[Buff.BuffType.AVOID_FUNCTION_EXECUTE_SELF, "Block Function Execution on Self"],
]);

export interface BuffTriggerType {
Expand Down
10 changes: 10 additions & 0 deletions packages/db/src/Descriptor/Func/handleActionSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,16 @@ function handleBuffActionSection(
}
}

if (func.buffs[0]?.type === Buff.BuffType.AVOID_FUNCTION_EXECUTE_SELF) {
parts.push("against functions with");
func.buffs[0].ckSelfIndv.forEach((trait, index) => {
if (index > 0) parts.push("&");
parts.push(
<TraitDescription region={region} trait={trait} owner="funcs" ownerParameter="funcIndividuality" />
);
});
}

if (buff?.type === Buff.BuffType.BUFF_CONVERT) {
const convert = buff.script.convert;
if (convert !== undefined) {
Expand Down
2 changes: 1 addition & 1 deletion packages/db/src/Page/FuncsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class FuncsPage extends React.Component<IProps, IState> {
vals: getQueryNums("vals"),
tvals: getQueryNums("tvals"),
questTvals: getQueryNums("questTvals"),
funcIndividuality: getQueryNums("questTvals"),
funcIndividuality: getQueryNums("funcIndividuality"),
};
} else {
state = stateCache.get(props.region) ?? defaultState;
Expand Down

0 comments on commit 34253d1

Please sign in to comment.