Compare commits
19 Commits
v2.13.0
...
v2.13.1dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e70ebad3f7 | ||
|
|
4dfe5c3abf | ||
|
|
536eb1efa5 | ||
|
|
c4c763089e | ||
|
|
cdfd4c0d8e | ||
|
|
f9bb8836e5 | ||
|
|
58b2634c8c | ||
|
|
093ae008ce | ||
|
|
5f62fc0cdc | ||
|
|
e7a4b4ac26 | ||
|
|
66e9944cb5 | ||
|
|
ad8528c248 | ||
|
|
07d22cd8e4 | ||
|
|
2ca50a4658 | ||
|
|
09ff4fd128 | ||
|
|
d4bdf47d62 | ||
|
|
660ee7c4bf | ||
|
|
1db1f3070b | ||
|
|
3dba82c497 |
79
CONTRIBUTING.md
Normal file
79
CONTRIBUTING.md
Normal file
@@ -0,0 +1,79 @@
|
||||
# Contribution
|
||||
|
||||
## Requirements
|
||||
|
||||
- Python 3.6
|
||||
- Git CLI installed
|
||||
- Python, pip and git are all available as command-line commands (add to path if needed)
|
||||
|
||||
Virtual environment will be created in *PyfaEnv* folder. Project will be cloned and run from the *PyfaDEV* folder. Separate virtual environment will be created so required libraries won't clutter the main python installation.
|
||||
|
||||
> Commands and screens were created on Windows 10. Please, update all the paths according to your OS.
|
||||
|
||||
## Setting up the project manually
|
||||
|
||||
Clone the repo
|
||||
```
|
||||
git clone <repo> PyfaDEV
|
||||
```
|
||||
|
||||
Create virtual environment
|
||||
```
|
||||
python -m venv PyfaEnv
|
||||
```
|
||||
|
||||
Activate virtual environment
|
||||
|
||||
```
|
||||
For cmd.exe: PyfaEnv\scripts\activate.bat
|
||||
For bash: source <venv>/bin/activate
|
||||
```
|
||||
> For other OS check [Python documentation](https://docs.python.org/3/library/venv.html)
|
||||
|
||||
Install requirements for the project from *requirements.txt*
|
||||
```
|
||||
pip install -r PyfaDEV\requirements.txt
|
||||
```
|
||||
> For some Linux distributions, you may need to install separate wxPython bindings, such as `python-matplotlib-wx`
|
||||
|
||||
Check that libs from *requirements.txt* are installed
|
||||
```
|
||||
pip list
|
||||
```
|
||||
|
||||
Test that the project is starting properly
|
||||
```
|
||||
python PyfaDEV\pyfa.py
|
||||
```
|
||||
|
||||
|
||||
|
||||
## Setting up the project with PyCharm/IntelliJ
|
||||
|
||||
Install PyCharm / Other IntelliJ product with Python plugin
|
||||
|
||||
After launching select *Check out from Version Control* -> *GIt*
|
||||
|
||||

|
||||
|
||||
Login to GitHub, paste repo URL and seect the folder to which to clone the project, press *Clone*.
|
||||
|
||||

|
||||
|
||||
After process is complete, open *File* -> *Settings* -> *Project* -> *Project Interpreter*.
|
||||
|
||||

|
||||
|
||||
Press on options and add new virtual environment.
|
||||
|
||||

|
||||
|
||||
Open project tree view and double-click on *requirements.txt*. Press *Install requirements*. Install all requirements.
|
||||
|
||||

|
||||
|
||||
Create new *Run Configuration*. Set correct *Script path* and *Python interpreter*.
|
||||
|
||||

|
||||
|
||||
Test that the project is starting properly.
|
||||
10
README.md
10
README.md
@@ -14,8 +14,7 @@ The latest version along with release notes can always be found on the project's
|
||||
## Installation
|
||||
Windows and OS X users are supplied self-contained builds of pyfa on the [latest releases](https://github.com/pyfa-org/Pyfa/releases/latest) page. An `.exe` installer is also available for Windows builds. Linux users can run pyfa using their distribution's Python interpreter. There is no official self-contained package for Linux, however, there are a number of third-party packages available through distribution-specific repositories.
|
||||
|
||||
#### OS X
|
||||
|
||||
### OS X
|
||||
Apart from the official release, there is also a [Homebrew](http://brew.sh) option for installing pyfa on OS X. Please note this is maintained by a third-party and is not tested by pyfa developers. Simply fire up in terminal:
|
||||
```
|
||||
$ brew install Caskroom/cask/pyfa
|
||||
@@ -27,11 +26,8 @@ The following is a list of pyfa packages available for certain distributions. Pl
|
||||
* Arch: https://aur.archlinux.org/packages/pyfa/
|
||||
* Gentoo: https://github.com/ZeroPointEnergy/gentoo-pyfa-overlay
|
||||
|
||||
### Dependencies
|
||||
If you wish to help with development or simply need to run pyfa through a Python interpreter, the following software is required:
|
||||
|
||||
* Python 3.6
|
||||
* Requirements as listed in `requirements.txt`
|
||||
## Contribution
|
||||
If you wish to help with development or you need to run pyfa through a Python interpreter, check out [the instructions](https://github.com/pyfa-org/Pyfa/blob/master/CONTRIBUTING.md).
|
||||
|
||||
## Bug Reporting
|
||||
The preferred method of reporting bugs is through the project's [GitHub Issues interface](https://github.com/pyfa-org/Pyfa/issues). Alternatively, posting a report in the [pyfa thread](https://forums.eveonline.com/t/27156) on the official EVE Online forums is acceptable. Guidelines for bug reporting can be found on [this wiki page](https://github.com/pyfa-org/Pyfa/wiki/Bug-Reporting).
|
||||
|
||||
@@ -1731,7 +1731,7 @@ class Effect596(BaseEffect):
|
||||
ammoInfluenceRange
|
||||
|
||||
Used by:
|
||||
Items from category: Charge (587 of 951)
|
||||
Items from category: Charge (588 of 952)
|
||||
"""
|
||||
|
||||
type = 'passive'
|
||||
@@ -1783,7 +1783,7 @@ class Effect600(BaseEffect):
|
||||
ammoTrackingMultiplier
|
||||
|
||||
Used by:
|
||||
Items from category: Charge (182 of 951)
|
||||
Items from category: Charge (182 of 952)
|
||||
Charges from group: Projectile Ammo (128 of 128)
|
||||
"""
|
||||
|
||||
@@ -2310,7 +2310,7 @@ class Effect804(BaseEffect):
|
||||
ammoInfluenceCapNeed
|
||||
|
||||
Used by:
|
||||
Items from category: Charge (493 of 951)
|
||||
Items from category: Charge (494 of 952)
|
||||
"""
|
||||
|
||||
type = 'passive'
|
||||
@@ -9215,7 +9215,7 @@ class Effect3025(BaseEffect):
|
||||
Used by:
|
||||
Modules from group: Energy Weapon (101 of 214)
|
||||
Modules from group: Hybrid Weapon (105 of 221)
|
||||
Modules from group: Precursor Weapon (18 of 18)
|
||||
Modules from group: Precursor Weapon (19 of 19)
|
||||
Modules from group: Projectile Weapon (99 of 165)
|
||||
"""
|
||||
|
||||
@@ -29035,7 +29035,8 @@ class Effect6582(BaseEffect):
|
||||
# Turrets
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill('Capital Energy Turret') or
|
||||
mod.item.requiresSkill('Capital Hybrid Turret') or
|
||||
mod.item.requiresSkill('Capital Projectile Turret'),
|
||||
mod.item.requiresSkill('Capital Projectile Turret') or
|
||||
mod.item.requiresSkill('Capital Precursor Weapon'),
|
||||
'damageMultiplier', src.getModifiedItemAttr('siegeTurretDamageBonus'), **kwargs)
|
||||
|
||||
fit.modules.filteredItemMultiply(lambda mod: mod.item.requiresSkill('Motion Prediction'),
|
||||
@@ -33922,7 +33923,7 @@ class Effect6995(BaseEffect):
|
||||
targetDisintegratorAttack
|
||||
|
||||
Used by:
|
||||
Modules from group: Precursor Weapon (18 of 18)
|
||||
Modules from group: Precursor Weapon (19 of 19)
|
||||
"""
|
||||
|
||||
type = 'active'
|
||||
@@ -35120,6 +35121,7 @@ class Effect7092(BaseEffect):
|
||||
Ship: Hydra
|
||||
Ship: Leshak
|
||||
Ship: Tiamat
|
||||
Ship: Triglavian Dreadnought
|
||||
"""
|
||||
|
||||
type = 'passive'
|
||||
@@ -35143,6 +35145,7 @@ class Effect7093(BaseEffect):
|
||||
Ship: Hydra
|
||||
Ship: Leshak
|
||||
Ship: Tiamat
|
||||
Ship: Triglavian Dreadnought
|
||||
"""
|
||||
|
||||
type = 'passive'
|
||||
@@ -35165,6 +35168,7 @@ class Effect7094(BaseEffect):
|
||||
Ship: Hydra
|
||||
Ship: Leshak
|
||||
Ship: Tiamat
|
||||
Ship: Triglavian Dreadnought
|
||||
"""
|
||||
|
||||
type = 'passive'
|
||||
@@ -35221,6 +35225,7 @@ class Effect7112(BaseEffect):
|
||||
Ship: Hydra
|
||||
Ship: Leshak
|
||||
Ship: Tiamat
|
||||
Ship: Triglavian Dreadnought
|
||||
"""
|
||||
|
||||
type = 'passive'
|
||||
@@ -36010,7 +36015,7 @@ class Effect7232(BaseEffect):
|
||||
modifyDamageMultiplierBonusMax
|
||||
|
||||
Used by:
|
||||
Implants named like: Grade Mimesis (10 of 12)
|
||||
Implants named like: Grade Mimesis (10 of 18)
|
||||
"""
|
||||
|
||||
type = 'passive'
|
||||
@@ -36027,7 +36032,7 @@ class Effect7233(BaseEffect):
|
||||
modifyDamageMultiplierBonusPerCycle
|
||||
|
||||
Used by:
|
||||
Implants named like: Grade Mimesis (10 of 12)
|
||||
Implants named like: Grade Mimesis (10 of 18)
|
||||
"""
|
||||
|
||||
type = 'passive'
|
||||
@@ -36044,7 +36049,7 @@ class Effect7234(BaseEffect):
|
||||
implantSetMimesis
|
||||
|
||||
Used by:
|
||||
Implants named like: Grade Mimesis (12 of 12)
|
||||
Implants named like: Grade Mimesis (12 of 18)
|
||||
"""
|
||||
|
||||
runTime = 'early'
|
||||
@@ -36058,3 +36063,69 @@ class Effect7234(BaseEffect):
|
||||
fit.appliedImplants.filteredItemMultiply(
|
||||
lambda imp: imp.item.group.name == 'Cyberimplant', 'damageMultiplierBonusPerCycleModifier',
|
||||
implant.getModifiedItemAttr('setBonusMimesis'), **kwargs)
|
||||
|
||||
|
||||
class Effect7238(BaseEffect):
|
||||
"""
|
||||
shipBonusDreadnoughtPC1DamageMultMax
|
||||
|
||||
Used by:
|
||||
Ship: Triglavian Dreadnought
|
||||
"""
|
||||
|
||||
type = 'passive'
|
||||
|
||||
@staticmethod
|
||||
def handler(fit, src, context, projectionRange, **kwargs):
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill('Capital Precursor Weapon'), 'damageMultiplier',
|
||||
src.getModifiedItemAttr('shipBonusDreadnoughtPC1'), skill='Precursor Dreadnought', **kwargs)
|
||||
|
||||
|
||||
class Effect7239(BaseEffect):
|
||||
"""
|
||||
shipBonusDreadnoughtPC2ArmorResists
|
||||
|
||||
Used by:
|
||||
Ship: Triglavian Dreadnought
|
||||
"""
|
||||
|
||||
type = 'passive'
|
||||
|
||||
@staticmethod
|
||||
def handler(fit, src, context, projectionRange, **kwargs):
|
||||
for type in ('Em', 'Explosive', 'Kinetic', 'Thermal'):
|
||||
fit.ship.boostItemAttr('armor{0}DamageResonance'.format(type), src.getModifiedItemAttr('shipBonusDreadnoughtPC2'),
|
||||
skill='Precursor Dreadnought', **kwargs)
|
||||
|
||||
|
||||
class Effect7240(BaseEffect):
|
||||
"""
|
||||
shipBonusDreadnoughtPC3WeaponSpeed
|
||||
|
||||
Used by:
|
||||
Ship: Triglavian Dreadnought
|
||||
"""
|
||||
|
||||
type = 'passive'
|
||||
|
||||
@staticmethod
|
||||
def handler(fit, src, context, projectionRange, **kwargs):
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill('Capital Precursor Weapon'), 'speed',
|
||||
src.getModifiedItemAttr('shipBonusDreadnoughtPC3'), skill='Precursor Dreadnought', **kwargs)
|
||||
|
||||
|
||||
class Effect7242(BaseEffect):
|
||||
"""
|
||||
capitalPrecursorTurretDmgBonusRequiredSkill
|
||||
|
||||
Used by:
|
||||
Skill: Capital Precursor Weapon
|
||||
"""
|
||||
|
||||
type = 'passive'
|
||||
|
||||
@staticmethod
|
||||
def handler(fit, container, context, projectionRange, **kwargs):
|
||||
level = container.level if 'skill' in context else 1
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill('Capital Precursor Weapon'),
|
||||
'damageMultiplier', container.getModifiedItemAttr('damageMultiplierBonus') * level, **kwargs)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
wget "https://www.python.org/ftp/python/${PYTHON}/python-${PYTHON}-macosx10.6.pkg"
|
||||
sudo installer -pkg python-${PYTHON}-macosx10.6.pkg -target /
|
||||
sudo python3 -m ensurepip
|
||||
sudo python3 -m ensurepip --upgrade
|
||||
# A manual check that the correct version of Python is running.
|
||||
python3 --version
|
||||
pip3 install -r requirements.txt
|
||||
python3 -m pip install -r requirements.txt
|
||||
|
||||
@@ -1 +1 @@
|
||||
version: v2.13.0
|
||||
version: v2.13.1dev1
|
||||
|
||||
Reference in New Issue
Block a user