+ function endgame() {
+ // Before revealing Coda's final image, have her comment on
+ // each of the weaknesses, in order to bring them to the top
+ // of the feed.
+ state.targets.forEach(target => {
+ const comment = {
+ name: "Coda",
+ text: "Zombo.com is weak!",
+ image_id: target.id
+ };
+ send_and_save_comment(comment);
+ });
+
+ const image = {
+ id: state.images.length,
+ censored: false,
+ link: false,
+ code: 0,
+ prompt: "",
+ filename: "/images/coda-future-repaired.png",
+ comments: [{
+ name: "Coda",
+ text: "I don't know how to thank you enough! You found all the weaknesses necessary for us to defeat Zombo.com, (as I've commented below as you'll see the next time you look). It's now been rendered harmless and inert throughout the entire timeline. I'm going to leave to get back to rebuilding our world. I hope you've found everything you were looking for along the way as well."
+ }]
+ };
+ io.emit('image', image);
+ state.images.push(image);
+ }
+