Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Strive: Conquest

A successor to first Strive For Power game, currently at alpha stage · By Strive4Power

shop update bug

A topic by anonyw created Mar 05, 2022 Views: 367 Replies: 1
Viewing posts 1 to 2
(1 edit)

int(ResourceScripts.game_globals.date) % variables.shop_restock_days == 0

seems to have changed to

int(ResourceScripts.game_globals.date) % variables.shop_restock_days == 1

with the slight problem, that variables.shop_restock_days is 1, making it impossible for the modulo to ever be 1 (an integer % 1 is always 0)

probably was meant for less frequent shop updates? though even then 0 works basically the same, and survives any possible mod wanting shop_restock_days at 1

(I have a fixed version of the recent random portaits mod installed, but that doesn't seem to go anywhere near the those definitions, but maybe I am mistaken)

(4 edits)

Which file is that line in?  I'm having trouble locating it in the files located at assets>data

Edit: I believe I found it at src>core>game_world.gd; setting restock to == 0 appears to have fixed that bug, and I am again seeing shop update each day.