This commit is contained in:
aozhiwei 2022-12-04 12:02:35 +08:00
parent 3165716f90
commit 5f17cecd1e
4 changed files with 4 additions and 11 deletions

View File

@ -94,19 +94,11 @@ void Android::GiveEquip()
} }
} }
void Android::SetAiLevel(int ai_level)
{
}
void Android::RandSkin() void Android::RandSkin()
{ {
if (!robot_meta->skin_id.empty()) { if (!robot_meta->skin_id.empty()) {
Skin& skin = skins[0]; Skin& skin = skins[0];
#if 1
skin.skin_id = 1 + (robot_meta->i->id() % 3); skin.skin_id = 1 + (robot_meta->i->id() % 3);
#else
skin.skin_id = robot_meta->skin_id[rand() % robot_meta->skin_id.size()];
#endif
skin.skin_lv = 1; skin.skin_lv = 1;
} }
} }

View File

@ -7,7 +7,6 @@ namespace MetaData
class Robot; class Robot;
} }
class AIComponent;
class Android : public Human class Android : public Human
{ {
public: public:
@ -17,7 +16,6 @@ class Android : public Human
virtual void Initialize() override; virtual void Initialize() override;
virtual void Update(int delta_time) override; virtual void Update(int delta_time) override;
void GiveEquip(); void GiveEquip();
void SetAiLevel(int ai_level);
protected: protected:
Android(); Android();

View File

@ -4,7 +4,6 @@
#include "roomentity.h" #include "roomentity.h"
#include "movehelper.h" #include "movehelper.h"
class AIComponent;
class MoveableEntity : public RoomEntity class MoveableEntity : public RoomEntity
{ {
public: public:

View File

@ -3762,7 +3762,9 @@ void Room::InitAndroidAI()
int ai_level = std::get<0>(tuple); int ai_level = std::get<0>(tuple);
int space = std::get<1>(tuple); int space = std::get<1>(tuple);
if (rnd <= space) { if (rnd <= space) {
#if 0
hum->SetAiLevel(ai_level); hum->SetAiLevel(ai_level);
#endif
++ai_num[ai_level]; ++ai_num[ai_level];
found = true; found = true;
break; break;
@ -3770,7 +3772,9 @@ void Room::InitAndroidAI()
} }
if (!found) { if (!found) {
int ai_level = 1; int ai_level = 1;
#if 0
hum->SetAiLevel(ai_level); hum->SetAiLevel(ai_level);
#endif
++ai_num[ai_level]; ++ai_num[ai_level];
} }
#ifdef DEBGU #ifdef DEBGU