RimWorld
Custom Ritual Framework
31–37 из 37
< 1  2  3  >
Обновление: 1 авг. 2021 г. в 21:19

- the Harmony prefix that allows us the magic of having effects on bad/terrible outcomes broke rituals that don't have attachable effects. Better null check added to escape that function if it's not applicable. (Even though I thought I had checked everything needed)

Обновление: 1 авг. 2021 г. в 15:20

- fixed an issue attaching a ritual with onlyPositiveOutcomes set to true to a ritual on creation. You now have to define the flag in the modextensions. The solution feels like a hack but it works.
- guess I should also note that IntRanges are available on the baseAmount and amountPerPawn fields for item spawns
- and also that you should be able to define lettertext and a letterlabel for any node
- and I shouldn't forget that you can provide a weight into a node for being selected by randomFromNode

Обновление: 1 авг. 2021 г. в 11:03

- now supports specifying outcomes that should only be run on given positivityIndex results (i.e. worst, bad, good, best outcomes)

Обновление: 1 авг. 2021 г. в 7:18

- now supports adding an ability to a pawn
- applyTo rules let you specify which ritual role gets a hediff or ability you specify
- there is a flag for a random applyTo to apply an ability or hediff to a random pawn selected from the list of possible targets specified with applyTo
- you can now provide a list of sub nodes to an outcome so that you can add multiple hediffs/abilities to pawns with different roles, or spawn two different groups of items
- you can add a flag to have the outcome choose a random node from a provided list of subnodes (this lets you, for example, have it randomly either give a hediff or spawn items)
- the subnodes are nestable, everything you can do with them is not going to be an exhaustive list
- commented the XML a bit so you can hopefully start to make some sense of how to use the framework

Обновление: 31 июл. 2021 г. в 15:25

Support added for adding a hediff only to a list of specified roles, everyone BUT a list of specified roles, and to a random pawn (that is already in the list of valid candidates)

Обновление: 31 июл. 2021 г. в 7:35

Now lets you specify separate outcomes for good and great. This can be done in a combination so you can have an effect only if the ritual is great, or an effect for good and an effect for great, or the same effect for both.

Unfortunately the attachable outcomes only trigger when you get at least good, so having effects on a bad outcome isn't possible without extending the system beyond attachableEffects.

Added a sample that has a separate event for good and great: Gambler's Prayer

Обновление: 30 июл. 2021 г. в 15:33

[Auto-generated text]: Initial upload.