summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/godpassive.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-01-29 15:33:52 +0100
committerRobert Vollmert <rvollmert@gmx.net>2010-01-29 18:28:34 +0100
commite30f19e901420a62b285b478c9645cadfd1190b5 (patch)
tree9d921154dfe522042b344c7d569194e14c43d30d /crawl-ref/source/godpassive.h
parentaef256462711a555081a838f07051d1a58548d78 (diff)
downloadcrawl-ref-e30f19e901420a62b285b478c9645cadfd1190b5.tar.gz
crawl-ref-e30f19e901420a62b285b478c9645cadfd1190b5.zip
Make Che support the use of ponderous armour per dpeg's design.
Che supports up to piety-rank (number of *'s) pieces of ponderous armour, giving resists rN, rC, rF for the first three, and +1 to all stats for each. The code mostly lives in the new file godpassive.cc that's meant to collect passive god effects. Changes to piety and number of equipped ponderous items result in calls to che_change_level which will do what needs to be done.
Diffstat (limited to 'crawl-ref/source/godpassive.h')
-rw-r--r--crawl-ref/source/godpassive.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/crawl-ref/source/godpassive.h b/crawl-ref/source/godpassive.h
new file mode 100644
index 0000000000..3461d8b7c3
--- /dev/null
+++ b/crawl-ref/source/godpassive.h
@@ -0,0 +1,29 @@
+/*
+ * File: godpassive.h
+ * Summary: Passive god effects.
+ */
+
+#ifndef GODPASSIVE_H
+#define GODPASSIVE_H
+
+enum che_boost_type
+{
+ CB_RNEG,
+ CB_RCOLD,
+ CB_RFIRE,
+ CB_STATS,
+ NUM_BOOSTS
+};
+
+enum che_change_type
+{
+ CB_PIETY, // Change in piety_rank.
+ CB_PONDEROUS // Change in number of worn ponderous items.
+};
+
+int che_boost_level();
+int che_boost(che_boost_type bt, int level = che_boost_level());
+void che_handle_change(che_change_type ct, int diff);
+
+#endif
+