Advertisement
Guest User

Untitled

a guest
Aug 15th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.61 KB | None | 0 0
  1. From 44874e4bb0ef9d5a326a48a669c034126ddd35f8 Mon Sep 17 00:00:00 2001
  2. From: Bodrick <bodricklight@gmail.com>
  3. Date: Sat, 15 Aug 2015 15:24:04 +0100
  4. Subject: [PATCH] Give no xp or drops from randomly spawned monsters.
  5.  
  6. ---
  7. crawl-ref/source/mon-place.cc | 9 ++++++++-
  8.  1 file changed, 8 insertions(+), 1 deletion(-)
  9.  
  10. diff --git a/crawl-ref/source/mon-place.cc b/crawl-ref/source/mon-place.cc
  11. index fc59779..364d54e 100644
  12. --- a/crawl-ref/source/mon-place.cc
  13. +++ b/crawl-ref/source/mon-place.cc
  14. @@ -362,7 +362,7 @@ void spawn_random_monsters()
  15.      if (player_on_orb_run())
  16.          rate = you_worship(GOD_CHEIBRIADOS) ? 16 : 8;
  17.      else if (!player_in_starting_abyss())
  18. -        rate = _scale_spawn_parameter(rate, 6 * rate, 0);
  19. +        rate = _scale_spawn_parameter(rate, 6 * rate, 6 * rate);
  20.  
  21.      if (rate == 0)
  22.      {
  23. @@ -400,6 +400,10 @@ void spawn_random_monsters()
  24.          mgen_data mg(WANDERING_MONSTER);
  25.          mg.proximity = prox;
  26.          mg.foe = (player_on_orb_run()) ? MHITYOU : MHITNOT;
  27. +
  28. +        // Give no xp or drops for random spawns.
  29. +        mg.extra_flags |= (MF_NO_REWARD | MF_HARD_RESET);
  30. +
  31.          mons_place(mg);
  32.          viewwindow();
  33.          return;
  34. @@ -414,6 +418,9 @@ void spawn_random_monsters()
  35.          mg.flags |= MG_PERMIT_BANDS;
  36.      }
  37.  
  38. +    // Give no xp or drops for random spawns.
  39. +    mg.extra_flags |= (MF_NO_REWARD | MF_HARD_RESET);
  40. +
  41.      mons_place(mg);
  42.      viewwindow();
  43.  }
  44. --
  45. 1.9.5.msysgit.0
  46.  
  47. From c13d07f57a0d3919cb2c41fe348b0fc51c0430e2 Mon Sep 17 00:00:00 2001
  48. From: Bodrick <bodricklight@gmail.com>
  49. Date: Fri, 14 Aug 2015 23:07:39 +0100
  50. Subject: [PATCH] Always set hunger to HUNGER_MAXIMUM
  51.  
  52. ---
  53. crawl-ref/source/food.cc | 7 +++++--
  54.  1 file changed, 5 insertions(+), 2 deletions(-)
  55.  
  56. diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc
  57. index ad6135d..590fcd3 100644
  58. --- a/crawl-ref/source/food.cc
  59. +++ b/crawl-ref/source/food.cc
  60. @@ -75,7 +75,9 @@ void make_hungry(int hunger_amount, bool suppress_msg,
  61.      set_redraw_status(REDRAW_HUNGER);
  62.  #endif
  63.  
  64. -    you.hunger -= hunger_amount;
  65. +    you.hunger = HUNGER_MAXIMUM;
  66. +
  67. +//    you.hunger -= hunger_amount;
  68.  
  69.      if (you.hunger < 0)
  70.          you.hunger = 0;
  71. @@ -106,7 +108,8 @@ void lessen_hunger(int satiated_amount, bool suppress_msg, int max)
  72.      if (you_foodless())
  73.          return;
  74.  
  75. -    you.hunger += satiated_amount;
  76. +    you.hunger = HUNGER_MAXIMUM;
  77. +//    you.hunger += satiated_amount;
  78.  
  79.      const hunger_state_t max_hunger_state = max == -1 ? HS_ENGORGED
  80.                                                        : (hunger_state_t) max;
  81. --
  82. 1.9.5.msysgit.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement