Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
CCHyper committed Mar 7, 2023
1 parent 30e3029 commit 26dd030
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/extensions/techno/technoext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ void TechnoClassExtension::Response_Capture()
VocType response = VOC_NONE;

const TechnoTypeClass *technotype = Techno_Type_Class();
const TechnoTypeClassExtension *technotypeext = Extension::Fetch<TechnoTypeClassExtension>(technotype);
const TechnoTypeClassExtension *technotypeext = Techno_Type_Class_Ext();
if (technotypeext->VoiceCapture.Count() > 0) {

response = technotypeext->VoiceCapture[Sim_Random_Pick(0, technotypeext->VoiceCapture.Count()-1)];
Expand Down Expand Up @@ -199,7 +199,7 @@ void TechnoClassExtension::Response_Enter()
VocType response = VOC_NONE;

const TechnoTypeClass *technotype = Techno_Type_Class();
const TechnoTypeClassExtension *technotypeext = Extension::Fetch<TechnoTypeClassExtension>(technotype);
const TechnoTypeClassExtension *technotypeext = Techno_Type_Class_Ext();
if (technotypeext->VoiceEnter.Count() > 0) {

response = technotypeext->VoiceEnter[Sim_Random_Pick(0, technotypeext->VoiceEnter.Count()-1)];
Expand Down Expand Up @@ -234,7 +234,7 @@ void TechnoClassExtension::Response_Deploy()
VocType response = VOC_NONE;

const TechnoTypeClass *technotype = Techno_Type_Class();
const TechnoTypeClassExtension *technotypeext = Extension::Fetch<TechnoTypeClassExtension>(technotype);
const TechnoTypeClassExtension *technotypeext = Techno_Type_Class_Ext();
if (technotypeext->VoiceDeploy.Count() > 0) {

response = technotypeext->VoiceDeploy[Sim_Random_Pick(0, technotypeext->VoiceDeploy.Count()-1)];
Expand Down Expand Up @@ -269,7 +269,7 @@ void TechnoClassExtension::Response_Harvest()
VocType response = VOC_NONE;

const TechnoTypeClass *technotype = Techno_Type_Class();
const TechnoTypeClassExtension *technotypeext = Extension::Fetch<TechnoTypeClassExtension>(technotype);
const TechnoTypeClassExtension *technotypeext = Techno_Type_Class_Ext();
if (technotypeext->VoiceHarvest.Count() > 0) {

response = technotypeext->VoiceHarvest[Sim_Random_Pick(0, technotypeext->VoiceHarvest.Count()-1)];
Expand All @@ -292,14 +292,11 @@ void TechnoClassExtension::Response_Harvest()
bool TechnoClassExtension::Can_Passive_Acquire() const
{
//EXT_DEBUG_TRACE("TechnoClassExtension::Can_Passive_Acquire - Name: %s (0x%08X)\n", Name(), (uintptr_t)(This()));

const TechnoTypeClass *technotype = Techno_Type_Class();
const TechnoTypeClassExtension *technotypeext = Extension::Fetch<TechnoTypeClassExtension>(technotype);

/**
* IsCanPassiveAcquire defaults to true to copy original behaviour, so all units can passive acquire unless told otherwise.
*/
return technotypeext->IsCanPassiveAcquire;
return Techno_Type_Class_Ext()->IsCanPassiveAcquire;
}


Expand Down

0 comments on commit 26dd030

Please sign in to comment.