diff --git a/core/imageboard/image.php b/core/imageboard/image.php index 9403093d..c9251899 100644 --- a/core/imageboard/image.php +++ b/core/imageboard/image.php @@ -231,7 +231,7 @@ class Image return 0; } $diff_d = ($now->getTimestamp() - $last_date->getTimestamp()) / 86400; - return (int)ceil($diff_d) + 1; + return (int)ceil($diff_d); } /** diff --git a/ext/home/counters/femcounter/4.png b/ext/home/counters/femcounter/4.png new file mode 100644 index 00000000..173e5068 Binary files /dev/null and b/ext/home/counters/femcounter/4.png differ diff --git a/ext/home/main.php b/ext/home/main.php index ed4a7cd1..9bab5e13 100644 --- a/ext/home/main.php +++ b/ext/home/main.php @@ -9,14 +9,16 @@ class Home extends Extension array(23, 64), array(14, 86), array(31, 63), - array(37, 100) + array(37, 100), + array(24, 90) ); private $femTags = array( "Hatsune_Miku", "Monika", "Violet_Parr", - "Keith_Kogane" + "Keith_Kogane", + "Rin_Kagamine", ); public function onPageRequest(PageRequestEvent $event) @@ -93,7 +95,7 @@ class Home extends Extension for ($n=0; $n<$length; $n++) { $cur = $strtotal[$n]; if ($counter_dir === 'femcounter') { - $charId = $n % 4; + $charId = $n % count($this->femTags); $base64url = $this->addCountToBlankImage($charId, $cur); $tag = $this->femTags[$charId]; $counter_text .= " $cur ";