diff options
author | Jesse Luehrs <doy@tozt.net> | 2010-03-02 16:12:12 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2010-03-02 16:31:14 -0600 |
commit | eaa23e307d459d652894db03f7fb8e70fbd479e2 (patch) | |
tree | f1a5d1bc97ab0d638e6863fafd285737016240c2 /crawl-ref/source/sprint.cc | |
parent | 291d2fa7b3d601c610d70768a8bccad58ed561b9 (diff) | |
download | crawl-ref-eaa23e307d459d652894db03f7fb8e70fbd479e2.tar.gz crawl-ref-eaa23e307d459d652894db03f7fb8e70fbd479e2.zip |
Add the Dungeon Sprint variant by Chapayev into the main source
Hopefully I didn't screw anything up! Things seem to be working okay...
needs more testing!
Diffstat (limited to 'crawl-ref/source/sprint.cc')
-rw-r--r-- | crawl-ref/source/sprint.cc | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/crawl-ref/source/sprint.cc b/crawl-ref/source/sprint.cc new file mode 100644 index 0000000000..352c762ae8 --- /dev/null +++ b/crawl-ref/source/sprint.cc @@ -0,0 +1,59 @@ +#include "externs.h" +#include "items.h" +#include "player.h" + +void sprint_give_items() +{ + item_def item; + + item.quantity = 1; + item.base_type = OBJ_POTIONS; + item.sub_type = POT_HEALING; + const int slot2 = find_free_slot(item); + you.inv[slot2] = item; + + item.quantity = 1; + item.base_type = OBJ_POTIONS; + item.sub_type = POT_HEAL_WOUNDS; + const int slot3 = find_free_slot(item); + you.inv[slot3] = item; + + item.quantity = 1; + item.base_type = OBJ_POTIONS; + item.sub_type = POT_SPEED; + const int slot4 = find_free_slot(item); + you.inv[slot4] = item; + + item.quantity = 1; + item.base_type = OBJ_SCROLLS; + item.sub_type = SCR_BLINKING; + const int slot5 = find_free_slot(item); + you.inv[slot5] = item; + + item.quantity = 2; + item.base_type = OBJ_POTIONS; + item.sub_type = POT_MAGIC; + const int slot6 = find_free_slot(item); + you.inv[slot6] = item; + + item.quantity = 1; + item.base_type = OBJ_POTIONS; + item.sub_type = POT_BERSERK_RAGE; + const int slot7 = find_free_slot(item); + you.inv[slot7] = item; +} + +int sprint_modify_exp(int exp) +{ + return exp * 9; +} + +int sprint_modify_skills(int skill_gain) +{ + return skill_gain * 27; +} + +int sprint_modify_piety(int piety) +{ + return piety * 9; +} |