KartulUdus / PoracleJS

NodeJS application for PokémonGo WebHook Discord alarms
https://kartuludus.github.io/PoracleJS/#/
ISC License
96 stars 115 forks source link

Master poracle V2 and Invasion Encounter Forms #826

Closed ReuschelCGN closed 1 year ago

ReuschelCGN commented 1 year ago

Support for new master-latest-poracle-v2.json and invasion encounter forms in dts. We owe this to @TurtIeSocks and his Masterfile-Generator which supply us with important informations.

new variable to use in invasion dts: this.formId this.formName this.fullName (that does all the form stuff automatically)


DTS String for rewards: Possible rewards: {{#compare gruntRewardsList.first.chance '==' 100}}{{#forEach gruntRewardsList.first.monsters}}{{this.fullName}}{{#unless isLast}}, {{/unless}}{{/forEach}}{{/compare}}{{#compare gruntRewardsList.first.chance '<' 100}}\\n ‣ {{gruntRewardsList.first.chance}}% : {{#forEach gruntRewardsList.first.monsters}}{{this.fullName}}{{#unless isLast}}, {{/unless}}{{/forEach}}\\n ‣ {{gruntRewardsList.second.chance}}% : {{#forEach gruntRewardsList.second.monsters}}{{this.fullName}}{{#unless isLast}}, {{/unless}}{{/forEach}}{{/compare}}

plinytheelder commented 1 year ago

looks good. you got my thumbs up to merge.