summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-20 11:42:58 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-20 11:42:58 +0000
commit9d02f1a1b111f882ca824583b1380a96fdeb556d (patch)
tree5fab218d6a29a109d9141a022873ac40eabd0c10 /src/map/clif.c
parenta4756bb8123d607ed5c4b854653d2ddab814f555 (diff)
downloadhercules-9d02f1a1b111f882ca824583b1380a96fdeb556d.tar.gz
hercules-9d02f1a1b111f882ca824583b1380a96fdeb556d.tar.bz2
hercules-9d02f1a1b111f882ca824583b1380a96fdeb556d.tar.xz
hercules-9d02f1a1b111f882ca824583b1380a96fdeb556d.zip
Added night_darkness_level
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@267 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index c41e42294..aa74f4e87 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -7299,12 +7299,17 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd)
skill_status_change_start(&sd->bl,SC_NOCHAT,0,0,0,0,0,0);
if (night_flag) {
- // night - when changing from indoors to outdoors - celest
- if (!map[sd->bl.m].flag.indoors && sd->opt2 != STATE_BLIND)
- sd->opt2 |= STATE_BLIND;
- // changing from outdoors to indoors
- else if (map[sd->bl.m].flag.indoors && sd->opt2 == STATE_BLIND)
- sd->opt2 &= ~STATE_BLIND;
+ if (battle_config.night_darkness_level > 0 && !map[sd->bl.m].flag.indoors)
+ clif_specialeffect(&sd->bl, 474 + battle_config.night_darkness_level, 0);
+ else {
+ //clif_specialeffect(&sd->bl, 483, 0); // default darkness level
+ // night - when changing from indoors to outdoors - celest
+ if (!map[sd->bl.m].flag.indoors && sd->opt2 != STATE_BLIND)
+ sd->opt2 |= STATE_BLIND;
+ // changing from outdoors to indoors
+ else if (map[sd->bl.m].flag.indoors && sd->opt2 == STATE_BLIND)
+ sd->opt2 &= ~STATE_BLIND;
+ }
}
// option