Skip to content

Commit

Permalink
Merge pull request #8 from OGSteam/develop
Browse files Browse the repository at this point in the history
Pour application en branche master
  • Loading branch information
satepestage authored Dec 21, 2023
2 parents 165bd2e + cb5aa48 commit f607409
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
7 changes: 4 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ IV/ Versions
1.5.4 [2017-04-15]= La fonction requiert un user_id
1.5.5 [2018-10-23]= Version OGSpy Minimale
1.5.6 [2019-09-18]= Nouveau fichier de gestion
1.5.7 [2020-03-16]= Nouveau fichier de gestion
1.5.8 [2020-xx-xx]= Nouveau fichier de gestion
1.5.7 [2020-03-16]= Prise en charge technologie Plasma
1.5.8 [2020-04-14]= Prise en charge foreuses et classe
1.5.9 [2023-12-21]= Prise en charge limite de bonus des foreuses

V/ Informations et liens
Les bugs seront renseignés sur github (https://github.com/OGSteam/mod-production/issues/new) ou sur le forum avec comme objet :
Expand All @@ -73,6 +74,6 @@ Les bugs seront renseignés sur github (https://github.com/OGSteam/mod-productio
Bitbucket : https://github.com/OGSteam/mod-production
Signalement de bugs : https://github.com/OGSteam/mod-production/issues/new
Téléchargement : https://github.com/OGSteam/mod-production/archive/master.zip
Wiki OGSteam : http://wiki.ogsteam.fr/doku.php?id=ogspy:liste_mods#production
Wiki OGSteam : http://wiki.ogsteam.eu/doku.php?id=ogspy:liste_mods

Responsable du mod : Pitch314
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name" : "ogsteam/mod-production",
"description" : "OGSpy Module calculating the mineral production",
"version": "1.5.8",
"version": "1.5.9",
"type" : "ogspy-mod",
"keywords" : [ "ogspy" ],
"license" : "GPL-2.0-only",
Expand Down
15 changes: 6 additions & 9 deletions production.php
Original file line number Diff line number Diff line change
Expand Up @@ -468,19 +468,16 @@ function calcul () {
if(ratio_conso > 1) ratio_conso = 1;
}
if(ratio_conso > 0){
BonusMaxForeuse = 0.5;
if (class_collect.value == "1") {
F_prod_M = Math.round(CofM * ratio_conso * nb_F_1 * 0.0003 * donnee['rap_FO'][i] / 100 * Math.floor(speed * 30 * donnee['M'][i] * Math.pow(1.1,donnee['M'][i]) * (1)));
F_prod_C = Math.round(CofC * ratio_conso * nb_F_1 * 0.0003 * donnee['rap_FO'][i] / 100 * Math.floor(speed * 20 * donnee['C'][i] * Math.pow(1.1,donnee['C'][i]) * (1)));
F_prod_D = Math.round(CofD * ratio_conso * nb_F_1 * 0.0003 * donnee['rap_FO'][i] / 100 * Math.floor(speed * 10 * donnee['D'][i] * Math.pow(1.1,donnee['D'][i]) * (1.44 - 0.004 * temperature_max_1 ) * (1)));
BonusForeuse = Math.min(nb_F_1 * 0.0003 * donnee['rap_FO'][i] / 100, BonusMaxForeuse);
} else {


F_prod_M = Math.round(CofM * ratio_conso * nb_F_1 * 0.0002 * donnee['rap_FO'][i] / 100 * Math.floor(speed * 30 * donnee['M'][i] * Math.pow(1.1,donnee['M'][i]) * (1)));
F_prod_C = Math.round(CofC * ratio_conso * nb_F_1 * 0.0002 * donnee['rap_FO'][i] / 100 * Math.floor(speed * 20 * donnee['C'][i] * Math.pow(1.1,donnee['C'][i]) * (1)));
F_prod_D = Math.round(CofD * ratio_conso * nb_F_1 * 0.0002 * donnee['rap_FO'][i] / 100 * Math.floor(speed * 10 * donnee['D'][i] * Math.pow(1.1,donnee['D'][i]) * (1.44 - 0.004 * temperature_max_1 ) * (1)));
BonusForeuse = Math.min(nb_F_1 * 0.0002 * donnee['rap_FO'][i] / 100, BonusMaxForeuse);
}


F_prod_M = Math.round(CofM * ratio_conso * BonusForeuse * Math.floor(speed * 30 * donnee['M'][i] * Math.pow(1.1,donnee['M'][i]) * (1)));
F_prod_C = Math.round(CofC * ratio_conso * BonusForeuse * Math.floor(speed * 20 * donnee['C'][i] * Math.pow(1.1,donnee['C'][i]) * (1)));
F_prod_D = Math.round(CofD * ratio_conso * BonusForeuse * Math.floor(speed * 10 * donnee['D'][i] * Math.pow(1.1,donnee['D'][i]) * (1.44 - 0.004 * temperature_max_1 ) * (1)));

M_1_prod[i] = Math.round(CofM * ratio_conso * production("M", donnee['M'][i], temperature_max_1, NRJ, Plasma) * donnee['rap_M'][i] / 100) + F_prod_M;
C_1_prod[i] = Math.round(CofC * ratio_conso * production("C", donnee['C'][i], temperature_max_1, NRJ, Plasma) * donnee['rap_C'][i] / 100) + F_prod_C;
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Production
1.5.8
1.5.9
production,production,production,production,production.php,1,0
3.3.7

0 comments on commit f607409

Please sign in to comment.