|
| 1 | +dump_system(); |
| 2 | + |
1 | 3 | class Travel_To {
|
2 | 4 | def Travel_To(string t_name, int t_cost, int t_x, int t_y, bool t_requires_offroad_tires, bool t_requires_chains) {
|
3 | 5 | this.name = t_name;
|
@@ -250,30 +252,22 @@ var game_creator = fun(game) {
|
250 | 252 | var Joshua_conversation_tree =
|
251 | 253 | Conversation([
|
252 | 254 | Question("Hello",
|
253 |
| - [Answer("Joshua", "Hi! Welcome to Glenn Haven.\nI've just opened up shop here.\nI think you'll like our prices on bread!")], |
254 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ true }, |
255 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ } |
| 255 | + [Answer("Joshua", "Hi! Welcome to Glenn Haven.\nI've just opened up shop here.\nI think you'll like our prices on bread!")] |
256 | 256 | ),
|
257 | 257 | Question("<spread rumors about competitor>",
|
258 | 258 | [Answer("Joshua", "That's not a very nice thing to say...")],
|
259 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ |
260 |
| - t_game.get_flag("have_talked_to_deborah_about_rumors") && !t_game.get_flag("have_talked_to_Joshua"); }, |
261 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ |
262 |
| - t_game.set_flag("have_talked_to_Joshua", true); t_game.set_flag("have_spread_rumors", true); } |
| 259 | + fun(t_game){ t_game.get_flag("have_talked_to_deborah_about_rumors") && !t_game.get_flag("have_talked_to_Joshua"); }, |
| 260 | + fun(t_game){ t_game.set_flag("have_talked_to_Joshua", true); t_game.set_flag("have_spread_rumors", true); } |
263 | 261 | ),
|
264 | 262 | Question("<say something nice about competitor>",
|
265 | 263 | [Answer("Joshua", "That's good to hear.")],
|
266 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ |
267 |
| - t_game.get_flag("have_talked_to_deborah_about_rumors") && !t_game.get_flag("have_talked_to_Joshua"); }, |
268 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ |
269 |
| - t_game.set_flag("have_talked_to_Joshua", true); t_game.set_flag("have_said_something_nice", true); } |
| 264 | + fun(t_game){ t_game.get_flag("have_talked_to_deborah_about_rumors") && !t_game.get_flag("have_talked_to_Joshua"); }, |
| 265 | + fun(t_game){ t_game.set_flag("have_talked_to_Joshua", true); t_game.set_flag("have_said_something_nice", true); } |
270 | 266 | ),
|
271 | 267 | Question("<say nothing about competitor>",
|
272 | 268 | [],
|
273 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ |
274 |
| - t_game.get_flag("have_talked_to_deborah_about_rumors") && !t_game.get_flag("have_talked_to_Joshua"); }, |
275 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ |
276 |
| - t_game.set_flag("have_talked_to_Joshua", true); t_game.set_flag("did_not_respond", true); } |
| 269 | + fun(t_game){ t_game.get_flag("have_talked_to_deborah_about_rumors") && !t_game.get_flag("have_talked_to_Joshua"); }, |
| 270 | + fun(t_game){ t_game.set_flag("have_talked_to_Joshua", true); t_game.set_flag("did_not_respond", true); } |
277 | 271 | )
|
278 | 272 |
|
279 | 273 |
|
@@ -338,34 +332,31 @@ var game_creator = fun(game) {
|
338 | 332 | var Deborah_conversation_tree =
|
339 | 333 | Conversation([
|
340 | 334 | Question("Hello",
|
341 |
| - [Answer("Deborah", "Hi! Welcome to Fairview.")], |
342 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ true }, |
343 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ } |
| 335 | + [Answer("Deborah", "Hi! Welcome to Fairview.")] |
344 | 336 | ),
|
345 | 337 | Question("Rumors",
|
346 | 338 | [Answer("Deborah", "Yes, I've heard the rumors too."),
|
347 | 339 | Answer("Deborah", "It's an unfortunate way to do business.")],
|
348 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ t_game.get_flag("have_been_notified_of_rumors"); }, |
349 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ } |
| 340 | + fun(t_game){ t_game.get_flag("have_been_notified_of_rumors"); } |
350 | 341 | ),
|
351 | 342 | Question("What should I do?",
|
352 | 343 | [Answer("Deborah", "Don't retaliate. Rumor mongering is not the best way to do business.")],
|
353 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ t_game.get_flag("have_been_notified_of_rumors"); }, |
354 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ t_game.set_flag("have_talked_to_deborah_about_rumors", true); } |
| 344 | + fun(t_game){ t_game.get_flag("have_been_notified_of_rumors"); }, |
| 345 | + fun(t_game){ t_game.set_flag("have_talked_to_deborah_about_rumors", true); } |
355 | 346 | ),
|
356 | 347 | Question("What now?",
|
357 | 348 | [Answer("Deborah", "Romans 12:19 says, 'Friends, do not avenge yourselves;\ninstead, leave room for His wrath.\nFor it is written: Vengeance belongs to Me;\nI will repay, says the Lord.'"),
|
358 | 349 | Answer("Deborah", "I hope you didn't decide to take matters into your own hands.\nThat rarely works out well.")],
|
359 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ did_make_all_responses(t_game); }, |
360 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ t_game.set_flag("deborah_shared_verse", true); } |
| 350 | + fun(t_game){ did_make_all_responses(t_game); }, |
| 351 | + fun(t_game){ t_game.set_flag("deborah_shared_verse", true); } |
361 | 352 | ),
|
362 | 353 | Question("Note",
|
363 | 354 | [Answer("Deborah", "Romans 12:19 says, 'Friends, do not avenge yourselves;\ninstead, leave room for His wrath.\nFor it is written: Vengeance belongs to Me;\nI will repay, says the Lord.'"),
|
364 | 355 | Answer("Deborah", "This you already know."),
|
365 | 356 | Answer("Deborah", "Romans 12:20 goes on to say 'But If your enemy is hungry,\nfeed him. If he is thirsty, give him something to drink.\nFor in so doing\nyou will be heaping fiery coals on his head.'"),
|
366 | 357 | Answer("Deborah", "This is the lesson you've learned today.")],
|
367 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ t_game.get_flag("saw_note") }, |
368 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ t_game.set_flag("deborah_shared_second_verse", true); } |
| 358 | + fun(t_game){ t_game.get_flag("saw_note") }, |
| 359 | + fun(t_game){ t_game.set_flag("deborah_shared_second_verse", true); } |
369 | 360 | )
|
370 | 361 | ]);
|
371 | 362 |
|
@@ -416,24 +407,22 @@ var game_creator = fun(game) {
|
416 | 407 | Question("Rumors",
|
417 | 408 | [Answer("William", "You must be the new trader in town.\nYour competitor has been saying unflattering things about you."),
|
418 | 409 | Answer("William", "But you seem like a nice person... I'm not sure I believe them.")],
|
419 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ true }, |
420 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ t_game.set_flag("have_been_notified_of_rumors", true); } |
| 410 | + fun(t_game){ !t_game.get_flag("have_been_notified_of_rumors"); }, |
| 411 | + fun(t_game){ t_game.set_flag("have_been_notified_of_rumors", true); } |
421 | 412 | ),
|
422 | 413 | Question("What should I do?",
|
423 | 414 | [Answer("William", "Well, if it were me, I'd start spreading rumors of my own about them!\nYou have to fight for what you get.")],
|
424 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ true }, |
425 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ } |
| 415 | + fun(t_game){ t_game.get_flag("have_been_notified_of_rumors"); } |
426 | 416 | ),
|
427 | 417 | Question("Note?",
|
428 | 418 | [Answer("William", "There's a note here from your competitor."),
|
429 | 419 | Answer("William", "It says he's sorry for starting those rumors about you,\nand promises to set things right")],
|
430 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj) { !t_game.get_flag("saw_note") && did_make_all_responses(t_game) && have_said_something_nice(t_game) && t_game.get_flag("deborah_shared_verse"); }, |
431 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj) { t_game.set_flag("saw_note", true); } |
| 420 | + fun(t_game) { !t_game.get_flag("saw_note") && did_make_all_responses(t_game) && have_said_something_nice(t_game) && t_game.get_flag("deborah_shared_verse"); }, |
| 421 | + fun(t_game) { t_game.set_flag("saw_note", true); } |
432 | 422 | ),
|
433 | 423 | Question("Share bible verses you've learned.",
|
434 | 424 | [Answer("William", "Well that is interesting...")],
|
435 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj) { t_game.get_flag("deborah_shared_second_verse") }, |
436 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj) { } |
| 425 | + fun(t_game) { t_game.get_flag("deborah_shared_second_verse") } |
437 | 426 | )
|
438 | 427 | ]);
|
439 | 428 |
|
@@ -523,35 +512,25 @@ var game_creator = fun(game) {
|
523 | 512 | Question("Hello",
|
524 | 513 | [Answer("Dana", "Hi! Welcome to the archaeological camp here."),
|
525 | 514 | Answer("Diane", "The two of us are scientists evaluating the finds from the dig here."),
|
526 |
| - Answer("Diane", "We welcome any supplies you manage to get up here.")], |
527 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ true; }, |
528 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ } |
| 515 | + Answer("Diane", "We welcome any supplies you manage to get up here.")] |
529 | 516 | ),
|
530 | 517 | Question("You look a lot a like",
|
531 |
| - [Answer("Diane", "Yes, we are twins")], |
532 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ true; }, |
533 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ } |
| 518 | + [Answer("Diane", "Yes, we are twins")] |
534 | 519 | ),
|
535 | 520 | Question("<spread rumors about competitor>",
|
536 | 521 | [Answer("Diane", "That's not a very nice thing to say...")],
|
537 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ |
538 |
| - t_game.get_flag("have_talked_to_deborah_about_rumors") && !t_game.get_flag("have_talked_to_Diane"); }, |
539 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ |
540 |
| - t_game.set_flag("have_talked_to_Diane", true); t_game.set_flag("have_spread_rumors", true); } |
| 522 | + fun(t_game){ t_game.get_flag("have_talked_to_deborah_about_rumors") && !t_game.get_flag("have_talked_to_Diane"); }, |
| 523 | + fun(t_game){ t_game.set_flag("have_talked_to_Diane", true); t_game.set_flag("have_spread_rumors", true); } |
541 | 524 | ),
|
542 | 525 | Question("<say something nice about competitor>",
|
543 | 526 | [Answer("Diane", "That's good to hear.")],
|
544 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ |
545 |
| - t_game.get_flag("have_talked_to_deborah_about_rumors") && !t_game.get_flag("have_talked_to_Diane"); }, |
546 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ |
547 |
| - t_game.set_flag("have_talked_to_Diane", true); t_game.set_flag("have_said_something_nice", true); } |
| 527 | + fun(t_game){ t_game.get_flag("have_talked_to_deborah_about_rumors") && !t_game.get_flag("have_talked_to_Diane"); }, |
| 528 | + fun(t_game){ t_game.set_flag("have_talked_to_Diane", true); t_game.set_flag("have_said_something_nice", true); } |
548 | 529 | ),
|
549 | 530 | Question("<say nothing about competitor>",
|
550 | 531 | [],
|
551 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ |
552 |
| - t_game.get_flag("have_talked_to_deborah_about_rumors") && !t_game.get_flag("have_talked_to_Diane"); }, |
553 |
| - fun(t_game_time, t_simulation_time, t_game, t_obj){ |
554 |
| - t_game.set_flag("have_talked_to_Diane", true); t_game.set_flag("did_not_respond", true); } |
| 532 | + fun(t_game){ t_game.get_flag("have_talked_to_deborah_about_rumors") && !t_game.get_flag("have_talked_to_Diane"); }, |
| 533 | + fun(t_game){ t_game.set_flag("have_talked_to_Diane", true); t_game.set_flag("did_not_respond", true); } |
555 | 534 | )
|
556 | 535 |
|
557 | 536 | ]);
|
|
0 commit comments