Attached Files:
|
djinni_level_notes.patch [^] (1,025 bytes) 2013-05-30 11:28 [Show Content] [Hide Content]diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index e811745..74f99d2 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -3680,9 +3680,18 @@ void level_change(int source, const char* aux, bool skip_attribute_increase)
const int note_maxmp = get_real_mp(false);
char buf[200];
- sprintf(buf, "HP: %d/%d MP: %d/%d",
- min(you.hp, note_maxhp), note_maxhp,
- min(you.magic_points, note_maxmp), note_maxmp);
+ if (you.species != SP_DJINNI)
+ {
+ sprintf(buf, "HP: %d/%d MP: %d/%d",
+ min(you.hp, note_maxhp), note_maxhp,
+ min(you.magic_points, note_maxmp), note_maxmp);
+ }
+ else
+ {
+ sprintf(buf, "HP: %d/%d",
+ min(you.hp, note_maxhp + note_maxmp),
+ note_maxhp + note_maxmp);
+ }
take_note(Note(NOTE_XP_LEVEL_CHANGE, you.experience_level, 0, buf));
xom_is_stimulated(12);
djinni_level_notes_updated.patch [^] (1,425 bytes) 2013-05-31 02:28 [Show Content] [Hide Content]From b2372beede16276843d5dc3239ec8f296c881ea8 Mon Sep 17 00:00:00 2001
From: Ed Gonzalez <ed.gonzalez3@gmail.com>
Date: Thu, 30 May 2013 17:04:34 -0700
Subject: [PATCH] Fixed Djinni level up notes to report EP instead of HP and
MP
---
crawl-ref/source/player.cc | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index e811745..965fd0d 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -3680,9 +3680,19 @@ void level_change(int source, const char* aux, bool skip_attribute_increase)
const int note_maxmp = get_real_mp(false);
char buf[200];
- sprintf(buf, "HP: %d/%d MP: %d/%d",
- min(you.hp, note_maxhp), note_maxhp,
- min(you.magic_points, note_maxmp), note_maxmp);
+ if (you.species != SP_DJINNI)
+ {
+ sprintf(buf, "HP: %d/%d MP: %d/%d",
+ min(you.hp, note_maxhp), note_maxhp,
+ min(you.magic_points, note_maxmp), note_maxmp);
+ }
+ else
+ {
+ // Djinn don't HP/MP
+ sprintf(buf, "EP: %d/%d",
+ min(you.hp, note_maxhp + note_maxmp),
+ note_maxhp + note_maxmp);
+ }
take_note(Note(NOTE_XP_LEVEL_CHANGE, you.experience_level, 0, buf));
xom_is_stimulated(12);
--
1.7.10.4
|