forked from cosmicr/startrek1971
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathShipStarbase.py
More file actions
36 lines (31 loc) · 964 Bytes
/
ShipStarbase.py
File metadata and controls
36 lines (31 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# MISSION: PyTrek 2020.
# STATUS: Release
# VERSION: 1.0.0
# NOTES: See https://github.com/Python3-Training/PyTrek
# DATE: 2026-05-30 20:48:04
# FILE: ShipStarbase.py
# AUTHOR: See https://ko-fi.com/randallnagy
#
import PyTrek.Glyphs as Glyphs
from PyTrek.AbsShip import AbsShip as AbsShip
class ShipStarbase(AbsShip):
def __init__(self):
super().__init__()
def get_glyph(self):
return Glyphs.STARBASE
@staticmethod
def dock_enterprise(ship):
ship.energy = 3000
ship.photon_torpedoes = 10
ship.navigation_damage = 0
ship.short_range_scan_damage = 0
ship.long_range_scan_damage = 0
ship.shield_control_damage = 0
ship.computer_damage = 0
ship.photon_damage = 0
ship.phaser_damage = 0
ship.shield_level = 0
ship.docked = True
@staticmethod
def launch_enterprise(ship):
ship.docked = False