summaryrefslogtreecommitdiff
path: root/src/map/atcommand.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/atcommand.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/atcommand.c')
-rw-r--r--src/map/atcommand.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index bb2ce41c7..fedde3ad0 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -4503,8 +4503,15 @@ int atcommand_night(
night_flag = 1; // 0=day, 1=night [Yor]
for(i = 0; i < fd_max; i++) {
if (session[i] && (pl_sd = session[i]->session_data) && pl_sd->state.auth && !map[sd->bl.m].flag.indoors) {
- pl_sd->opt2 |= STATE_BLIND;
- clif_changeoption(&pl_sd->bl);
+ //pl_sd->opt2 |= STATE_BLIND;
+ //clif_changeoption(&pl_sd->bl);
+ if (battle_config.night_darkness_level > 0)
+ clif_specialeffect(&pl_sd->bl, 474 + battle_config.night_darkness_level, 0);
+ else {
+ //clif_specialeffect(&pl_sd->bl, 483, 0); // default darkness level
+ pl_sd->opt2 |= STATE_BLIND;
+ clif_changeoption(&pl_sd->bl);
+ }
clif_displaymessage(pl_sd->fd, msg_table[59]); // Night has fallen.
}
}