parent
e9473efd18
commit
6dfb72c19d
@ -135,8 +135,8 @@ export default class PortQBData {
|
|||||||
} else {
|
} else {
|
||||||
this.ref = await input({
|
this.ref = await input({
|
||||||
message:
|
message:
|
||||||
"What Commit SHA, Tag OR Branch should we compare to? (Defaults to 'main')",
|
"What Commit SHA, Tag OR Branch should we compare to? (Defaults to 'HEAD')",
|
||||||
default: "main",
|
default: "HEAD",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,7 +209,8 @@ function findAllParsers(modify: Modified): {
|
|||||||
function assertIsModification(change: QuestChange) {
|
function assertIsModification(change: QuestChange) {
|
||||||
if (change.op !== "replace")
|
if (change.op !== "replace")
|
||||||
throw new Error(dedent`
|
throw new Error(dedent`
|
||||||
Runtime Exception: Addition/Removal Should Not Happen Here! Report this to the Core Devs of Nomi-CEu!
|
Runtime Exception: Addition/Removal Should Not Happen Here!
|
||||||
|
If this is a Proper Change, Report this to the Core Devs of Nomi-CEu!
|
||||||
Path: ${change.path.toString()}
|
Path: ${change.path.toString()}
|
||||||
`);
|
`);
|
||||||
}
|
}
|
||||||
@ -297,7 +298,11 @@ const modifyIcon = async (
|
|||||||
modify: Modified,
|
modify: Modified,
|
||||||
change: QuestChange,
|
change: QuestChange,
|
||||||
) => {
|
) => {
|
||||||
assertIsModification(change);
|
// Tag Compounds might be removed/added
|
||||||
|
if (
|
||||||
|
change.path.toString() !== "properties:10,betterquesting:10,icon:10,tag:10"
|
||||||
|
) assertIsModification(change);
|
||||||
|
|
||||||
const oldIcon =
|
const oldIcon =
|
||||||
modify.oldQuest["properties:10"]["betterquesting:10"]["icon:10"];
|
modify.oldQuest["properties:10"]["betterquesting:10"]["icon:10"];
|
||||||
const newIcon =
|
const newIcon =
|
||||||
@ -831,6 +836,7 @@ export const modificationParsers = [
|
|||||||
logic: {
|
logic: {
|
||||||
type: LogicType.Simple,
|
type: LogicType.Simple,
|
||||||
applyOnce: true,
|
applyOnce: true,
|
||||||
|
formattedName: () => "Icon Modification",
|
||||||
func: modifyIcon,
|
func: modifyIcon,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user