Skip to content

Commit

Permalink
Fix math error with bloodsucker sol times
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy committed Jun 7, 2024
1 parent 8b086f4 commit b9e329f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions monkestation/code/modules/bloodsuckers/controllers/sunlight.dm
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ SUBSYSTEM_DEF(sunlight)
issued_XP = FALSE
//randomize the next sol timer
time_til_cycle = round(rand((TIME_BLOODSUCKER_NIGHT-TIME_BLOODSUCKER_SOL_DELAY), (TIME_BLOODSUCKER_NIGHT+TIME_BLOODSUCKER_SOL_DELAY)), 1)
message_admins("BLOODSUCKER NOTICE: Daylight Ended. Resetting to Night (Lasts for [DisplayTimeText(time_til_cycle * 0.1)])")
message_admins("BLOODSUCKER NOTICE: Daylight Ended. Resetting to Night (Lasts for [DisplayTimeText(time_til_cycle * 10)])")
SEND_SIGNAL(src, COMSIG_SOL_END)
warn_daylight(
danger_level = DANGER_LEVEL_SOL_ENDED,
Expand All @@ -52,14 +52,14 @@ SUBSYSTEM_DEF(sunlight)
SEND_SIGNAL(src, COMSIG_SOL_NEAR_START)
warn_daylight(
danger_level = DANGER_LEVEL_FIRST_WARNING,
vampire_warning_message = span_danger("Solar Flares will bombard the station with dangerous UV radiation in [DisplayTimeText(TIME_BLOODSUCKER_DAY_WARN * 0.1)]. <b>Prepare to seek cover in a coffin or closet.</b>"),
vampire_warning_message = span_danger("Solar Flares will bombard the station with dangerous UV radiation in [DisplayTimeText(TIME_BLOODSUCKER_DAY_WARN * 10)]. <b>Prepare to seek cover in a coffin or closet.</b>"),
)
if(TIME_BLOODSUCKER_DAY_FINAL_WARN)
message_admins("BLOODSUCKER NOTICE: Daylight beginning in [DisplayTimeText(TIME_BLOODSUCKER_DAY_FINAL_WARN * 0.1)].)")
message_admins("BLOODSUCKER NOTICE: Daylight beginning in [DisplayTimeText(TIME_BLOODSUCKER_DAY_FINAL_WARN * 10)].)")
warn_daylight(
danger_level = DANGER_LEVEL_SECOND_WARNING,
vampire_warning_message = span_userdanger("Solar Flares are about to bombard the station! You have [DisplayTimeText(TIME_BLOODSUCKER_DAY_FINAL_WARN * 0.1)] to find cover!"),
vassal_warning_message = span_danger("In [DisplayTimeText(TIME_BLOODSUCKER_DAY_FINAL_WARN * 0.1)], your master will be at risk of a Solar Flare. Make sure they find cover!"),
vampire_warning_message = span_userdanger("Solar Flares are about to bombard the station! You have [DisplayTimeText(TIME_BLOODSUCKER_DAY_FINAL_WARN * 10)] to find cover!"),
vassal_warning_message = span_danger("In [DisplayTimeText(TIME_BLOODSUCKER_DAY_FINAL_WARN * 10)], your master will be at risk of a Solar Flare. Make sure they find cover!"),
)
if(TIME_BLOODSUCKER_BURN_INTERVAL)
warn_daylight(
Expand All @@ -70,10 +70,10 @@ SUBSYSTEM_DEF(sunlight)
sunlight_active = TRUE
//set the timer to countdown daytime now.
time_til_cycle = TIME_BLOODSUCKER_DAY
message_admins("BLOODSUCKER NOTICE: Daylight Beginning (Lasts for [DisplayTimeText(TIME_BLOODSUCKER_DAY * 0.1)])")
message_admins("BLOODSUCKER NOTICE: Daylight Beginning (Lasts for [DisplayTimeText(TIME_BLOODSUCKER_DAY * 10)])")
warn_daylight(
danger_level = DANGER_LEVEL_SOL_ROSE,
vampire_warning_message = span_userdanger("Solar flares bombard the station with deadly UV light! Stay in cover for the next [DisplayTimeText(TIME_BLOODSUCKER_DAY * 0.1)] or risk Final Death!"),
vampire_warning_message = span_userdanger("Solar flares bombard the station with deadly UV light! Stay in cover for the next [DisplayTimeText(TIME_BLOODSUCKER_DAY * 10)] or risk Final Death!"),
vassal_warning_message = span_userdanger("Solar flares bombard the station with UV light!"),
)

Expand Down

0 comments on commit b9e329f

Please sign in to comment.