罪と罰++二律背反


  • #HPグラフ
    if($max_hp <= 75){
     $hp_v = $hp*2;
     $hp_c = "#00bbff";
     $hp_y = $max_hp*2-$hp*2;
    }elsif($max_hp <= 300){
     $hp_v = $hp;
     $hp_c = "#0099ff";
     $hp_y = $max_hp-$hp;
    }elsif($max_hp <= 600){ 
     $hp_v = int($hp/2);
     $hp_c = "#0077ff";
     $hp_y = int($max_hp/2-$hp/2);
    }elsif($max_hp <= 1200){
     $hp_v = int($hp/4);
     $hp_c = "#0055ff";
     $hp_y = int($max_hp/4-$hp/4);
    }elsif($max_hp <= 2400){
     $hp_v = int($hp/8);
     $hp_c = "#0033ff";
     $hp_y = int($max_hp/8-$hp/8);
    }elsif($max_hp <= 4800){
     $hp_v = int($hp/16);
     $hp_c = "#0011ff";
     $hp_y = int($max_hp/16-$hp/16);
    }elsif($max_hp <= 9999){
     $hp_v = int($hp/32);
     $hp_c = "#0011ff";
     $hp_y = int($max_hp/32-$hp/32);
    }else{
     $hp_y = int(312-(312*$hp/$max_hp));
     $hp_v = 312-$hp_y;
     $hp_c = "#0011ff";
    }
  • #UAグラフ
    if($ua <= 25){
     $ua_v = $ua*4;
     $ua_c = "#99ccff";
    }elsif($ua <= 50){
     $ua_v = $ua*2;
     $ua_c = "#9999ff";
    }elsif($ua <= 100){ 
     $ua_v = $ua;
     $ua_c = "#9966ff";
    }elsif($ua <= 500){ 
     $ua_v = int($ua/2);
     $ua_c = "#9933ff";
    }elsif($ua <= 1000){ 
     $ua_v = int($ua/4);
     $ua_c = "#9900ff";
    }else{ 
     $ua_v = 250;
     $ua_c = "#9900ff";
    }


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2012-06-08 (金) 00:25:47 (2745d)