• 0 Posts
  • 17 Comments
Joined 1 year ago
cake
Cake day: July 16th, 2023

help-circle

  • So player has all these nodes that provide abilities. Each node has a signal that the ability is activated. This is correct. What you do after the signal was your question.

    The two options i described were:

    #1 don’t just connect to one omnibus function. Don’t connect them all to a _gave_ability() function. This is what it sounds like you are doing. Instead seperate into seperat smaller functions. Connect ability As signal to functionA(), and abilityB signal to functionB(). Then yiu are not checking all 19 cases everything a signal is called.

    #2 if you are using the omnibus function _give_ability(ability), set an input parameter for the signal saying which specific signal was emitted. This can be done by code or the inspector when connecting the signal.

    Then on _give_ability(ability) do:

    match ability: abilityA: Give ability


  • Without knowing your specific situation, it seems like each of you signals should not be connecting to one master “abilities” function to dole out the effects.

    Instead each signal should connect to its own function and that function is responsible for only its specif effect.

    ====== Another thought would be if you like your setup, change the if statement to a match/case. For many simple if checks the match is more optimized.








  • I started doing diamond art. Here is a cheap set with honestly 100+ hours of content. AMAZON LINK

    I would put on a TV show and sit at my desk and Diamond art for a few hours before bed. Each picture takes 10-15 hours in my experience. When I was done I would find someone to give the picture to.

    So not only have you accomplished something and you can SEE THE PROGRESS, you don’t need a big shift in your life of watching youtube, and at the end you get to make some else happy by giving them a gift. And for a hobby it’s fairly inexpensive.







  • I’ve read all these series. WoT seemed to drag toward the end and i didnt care for the last few chapters. It felt like there was too much to wrap up with too few pages so it felt rushed and unsatisfying.

    I love all works by Sanderson so I’ve read all mistborn(except the new one from last November #7 I think). Excellent series. Have you read Elantris by Sanderson. I thought that was a very unique one off book that I couldn’t put down.

    I just started the final set in the farseer/liveship series. I loved the first farseer trilogy. I felt the second trilogy(live ship trilogy) had a significant change of pace and almost skipped it. I really liked the first person view of fitz. In the end it was good and there are a few tie ins to later trilogies.