Giter VIP home page Giter VIP logo

Comments (5)

jstar88 avatar jstar88 commented on August 25, 2024

https://github.com/jstar88/opbe/blob/master/core/Round.php

double this line
$this->fire_a->add(new Fire($shipType, $defendersMerged));

from opbe.

Jbaukens avatar Jbaukens commented on August 25, 2024

Thanks alot and one last question how can i call something from the missioncaseattack of 2moons, that i can use on the calculateatack page of OPBE but i want also to use it on the file to adapt the debris generated and the restored defense in function of that players powerups

not only the static value defined in battle constant
I dont need the code i just want to know how i can use a players info from my database to adapt those 2 functions in BattleReport.php

Example $Players['regenerated_debris_premium']

from opbe.

jstar88 avatar jstar88 commented on August 25, 2024

the easiest solutions is to replace constants like this
if (!defined('SHIP_DEBRIS_FACTOR')) {
define('SHIP_DEBRIS_FACTOR', 0.3);
}
and define it in 2moon, before call OPBE.
To see what happens in battle report with "premium tech", like you said, you must double a lot of code

from opbe.

florin1693 avatar florin1693 commented on August 25, 2024

Hi! I can't figure out...how units pick their target? Did they just shoots standard shoots vs all kind of units (my unit1/count(enemyTypes))?

from opbe.

jstar88 avatar jstar88 commented on August 25, 2024

it depends: if attacker doesn't has RF then it will shot 1 time, otherwise there is a probability to shot more than 1 based on defender types. I suggest you to check Ogame forum for more infos

from opbe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.