Comments (3)
I have the same problem.
If you know how to solve it, please tell me.
from opbe.
I checked again.
It seems that the problem occurs regardless of the number of ships in battle.
It looks like you need a quick fix.
I need help from someone who can solve it.
from opbe.
Please try a test.
combatObject/ShipsCleaner.php
==============
find line
if (USE_BIEXPLOSION_SYSTEM && $this->lastShipHit >= $this->fighters->getCount() / PROB_TO_REAL_MAGIC)
{
log_comment('lastShipHit bigger than getCount()/magic');
if ($prob < MIN_PROB_TO_EXPLODE)
{
$probToExplode = 0;
}
else
{
$probToExplode = $prob;
}
}
//otherwise statistically:
else
{
log_comment('lastShipHit smaller than getCount()/magic');
$probToExplode = $prob * (1 - MIN_PROB_TO_EXPLODE);
}
Modify as below
if ($prob < MIN_PROB_TO_EXPLODE)
{
log_comment('lastShipHit smaller than getCount()/magic');
$probToExplode = $prob * (1 - MIN_PROB_TO_EXPLODE);
}
else
{
log_comment('lastShipHit smaller than getCount()/magic');
$probToExplode = $prob;
}
==================
Please let me know if you have better code.
from opbe.
Related Issues (20)
- Minimal Bug HOT 1
- Some battle shield -
- tryMoon HOT 3
- Something battle fault. HOT 1
- i found something.. HOT 1
- plz help HOT 1
- battle engine problem HOT 1
- each debris percentage for defence and ships HOT 7
- Will there be any usage example without 2Moons or Xgp? HOT 4
- Question HOT 5
- Report customization HOT 4
- Bug with battle cruisers HOT 1
- calculateAttack.php HOT 1
- Debris HOT 2
- Increase the attack power HOT 1
- Undeclared engineer officer for your bonus HOT 2
- Error with the battle HOT 1
- Attacker and Defender Basic Fleet and Defense Facilities Performance HOT 1
- php7 can?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opbe.