EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Moon.cpp
Go to the documentation of this file.
1 
11 #include "Moon.h"
12 #include "pos/Structure.h"
13 #include "StaticDataMgr.h"
14 #include "system/Celestial.h"
15 #include "system/SystemManager.h"
16 
24 /* moon probes, cause i dont where else to put them offhand...
25  * Probe Travel_Time Skill_Needed
26  * Quest 40 minutes Survey III, Astrometrics III
27  * Discovery 10 minutes Survey III, Astrometrics III
28  * Gaze 5 Minutes Survey V, Astrometrics V
29  *
30 
31  About 50% of moons will yield nothing.
32  About 39% of moons will yield only gases.
33  The rest will yield some combination of gasses and/or minerals.
34 
35  Normal skills to reduce probing time do not apply to survey probes
36 
37  The Covert Ops 10% time reduction skill per level DOES apply to survey probes when fired from a covops. If you are scanning a large number of moons, it may be better time-wise to use a covops. A covops is also highly recommended when scanning in hostile systems.
38 
39 
40  What you need to Probe Moons
41 
42  Skills
43  Survey III
44  Astrometrics III
45  Expanded Probe Launcher (NOT a Core Probe Launcher)
46  Survey Probes
47  */
48 
50 {
51 
52 }
53 
54 
56 : StaticSystemEntity(self, services, system),
57 m_towerSE(nullptr)
58 {
60  m_resources.clear();
61 /*
62  [PyTuple 2 items]
63  [PyInt 40126701]
64  [PyList 20 items]
65  [PyTuple 2 items]
66  [PyInt 16633]
67  [PyInt 4]
68  [PyTuple 2 items]
69  [PyInt 16634]
70  [PyInt 4]
71  [PyTuple 2 items]
72  [PyInt 16635]
73  [PyInt 4]
74  [PyTuple 2 items]
75  [PyInt 16636]
76  [PyInt 4]
77  [PyTuple 2 items]
78  [PyInt 16637]
79  [PyInt 4]
80  [PyTuple 2 items]
81  [PyInt 16638]
82  [PyInt 4]
83  [PyTuple 2 items]
84  [PyInt 16639]
85  [PyInt 4]
86  [PyTuple 2 items]
87  [PyInt 16640]
88  [PyInt 4]
89  [PyTuple 2 items]
90  [PyInt 16641]
91  [PyInt 4]
92  [PyTuple 2 items]
93  [PyInt 16642]
94  [PyInt 4]
95  [PyTuple 2 items]
96  [PyInt 16643]
97  [PyInt 4]
98  [PyTuple 2 items]
99  [PyInt 16644]
100  [PyInt 4]
101  [PyTuple 2 items]
102  [PyInt 16646]
103  [PyInt 4]
104  [PyTuple 2 items]
105  [PyInt 16647]
106  [PyInt 4]
107  [PyTuple 2 items]
108  [PyInt 16648]
109  [PyInt 4]
110  [PyTuple 2 items]
111  [PyInt 16649]
112  [PyInt 4]
113  [PyTuple 2 items]
114  [PyInt 16650]
115  [PyInt 4]
116  [PyTuple 2 items]
117  [PyInt 16651]
118  [PyInt 4]
119  [PyTuple 2 items]
120  [PyInt 16652]
121  [PyInt 4]
122  [PyTuple 2 items]
123  [PyInt 16653]
124  [PyInt 4]
125  */
126 }
127 
130  return false;
131 
137  /* moon goo data (notes for me)
138  * goo rarity 4/8/16/32/64
139  *
140  *
141 
142 Moon materials have different rarity classes, starting with R4 being the most common and R64 being the most rare.
143 
144  R4 (Gases) : Atmospheric Gases, Evaporite, Hydrocarbons, Silicates.
145  R8 (Metals): Cobalt, Scandium, Titanium, Tungsten
146  R16 (Metals): Cadmium, Chromium, Platinum, Vanadium
147  R32 (Metals): Caesium, Hafnium, Mercury, Technetium
148  R64 (Metals): Dysprosium, Neodymium, Promethium, Thulium
149 
150  Intermediate Materials include:
151 
152  Caesarium Cadmide
153  Carbon Polymers
154  Ceramic Powder
155  Crystallite Alloy
156  Dysporite
157  Fernite Alloy
158  Ferrofluid
159  Fluxed Condensates
160  Hexite
161  Hyperflurite
162  Neo Mercurite
163  Platinum Technite
164  Prometium
165  Rolled Tungsten Alloy
166  Silicon Diborite
167  Solerium
168  Sulfuric Acid
169  Titanium Chromide
170  Vanadium Hafnite
171  */
172  std::map<uint16, uint8> data;
173  sDataMgr.GetMoonResouces(data);
174 
175  for (auto cur : data)
176  switch (cur.second) {
177  case 1: {
178  m_resources.insert(std::pair<uint16, uint8>(cur.first, 6));
179  } break;
180  case 4: {
181  m_resources.insert(std::pair<uint16, uint8>(cur.first, 4));
182  } break;
183  case 6:{
184  m_resources.insert(std::pair<uint16, uint8>(cur.first, 3));
185  } break;
186  case 8:{
187  m_resources.insert(std::pair<uint16, uint8>(cur.first, 2));
188  } break;
189  case 10:{
190  m_resources.insert(std::pair<uint16, uint8>(cur.first, 1));
191  } break;
192  }
193 
194  return true;
195 }
Moon()
Definition: Moon.cpp:49
virtual bool LoadExtras()
Definition: Moon.cpp:128
std::map< uint16, uint8 > m_resources
Definition: Moon.h:56
MoonSE(InventoryItemRef self, PyServiceMgr &services, SystemManager *system)
Definition: Moon.cpp:55
virtual bool LoadExtras()
#define sDataMgr