Advertisement
Tkap1

Untitled

Apr 19th, 2024
870
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1.  
  2.  
  3. int entity_get_personality_count(Entity entity)
  4. {
  5.     int result = 0;
  6.     for(int i = 0; i < Personality_Count; i++) {
  7.         if(entity.personality_values[i] > 0) { result += 1; }
  8.     }
  9.     return result;
  10. }
  11.  
  12. bool entity_has_personality(Entity entity, Personality personality)
  13. {
  14.     return entity.personality_values[personality] > 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement